summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ea3ea7bf05a..75a4bdf3291 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,9 +3,8 @@
# Contributor: Joel Pedraza <joel@joelpedraza.com>
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
-_rev=r04
-_sdkver=4.4.2
-_apilevel=19
+_rev=r01
+_apilevel=21
pkgname=android-platform
pkgver=${_apilevel}_${_rev}
pkgrel=1
@@ -18,11 +17,13 @@ provides=("${pkgname}-${_apilevel}")
conflicts=("${pkgname}-${_apilevel}")
options=('!strip')
source=("http://dl.google.com/android/repository/android-${_apilevel}_${_rev}.zip")
-sha1sums=('2ff20d89e68f2f5390981342e009db5a2d456aaa')
+sha1sums=('218ca22f8cb744396fa11e65b8a3d2d1ae07f10e')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/platforms/"
- mv "${srcdir}/android-${_sdkver}" "${pkgdir}/opt/android-sdk/platforms/android-${_apilevel}"
+ 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"
}