blob: d97df913e67464588c51cb5d7901273b480ad445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributors: goetzc, Skycoder42
# Contributors: lestb, Philipp Wolfer, Joel Pedraza, Jakub Schmidtke
pkgname=android-platform-30
_apilevel=30
_rev=r03
pkgver=${_apilevel}_${_rev}
pkgrel=1
pkgdesc="Android SDK Platform, API 30"
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
depends=('android-sdk' 'android-sdk-platform-tools')
options=('!strip')
source=("https://dl-ssl.google.com/android/repository/platform-${_apilevel}_${_rev}.zip")
sha256sums=('f3f5b75744dbf6ee6ed3e8174a71e513bfee502d0bc3463ea97e517bff68d84e')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/platforms/"
find "${srcdir}" -maxdepth 1 -mindepth 1 -type d | grep -P 'android-[0-9]+(\.[0-9]*)*$' | while read directory; do
mv "${directory}" "${pkgdir}/opt/android-sdk/platforms/android-${_apilevel}"
done
chmod -R ugo+rX "${pkgdir}/opt"
}
|