summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlester2014-10-22 20:38:41 +0800
committerlester2014-10-22 22:54:41 +0800
commit53db713ed4e06f5f3db83613373f0ca20f463f7d (patch)
treecc9f660eb15bec94b0dafa8117cc7b2bf8b21c5b
parent683247be37dd57ecdc4619fdb1a8ab06bd2504d7 (diff)
downloadaur-53db713ed4e06f5f3db83613373f0ca20f463f7d.tar.gz
Update pkg (21_r01)
Make the build not depend on the _sdkver.
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD11
2 files changed, 11 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a993ce9d6cc..c1611223479 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = android-platform
pkgdesc = Android SDK Platform, latest API
- pkgver = 19_r04
+ pkgver = 21_r01
pkgrel = 1
url = http://developer.android.com/sdk/index.html
arch = any
license = custom
depends = android-sdk
depends = android-sdk-platform-tools
- provides = android-platform-19
- conflicts = android-platform-19
+ provides = android-platform-21
+ conflicts = android-platform-21
options = !strip
- source = http://dl.google.com/android/repository/android-19_r04.zip
- sha1sums = 2ff20d89e68f2f5390981342e009db5a2d456aaa
+ source = http://dl.google.com/android/repository/android-21_r01.zip
+ sha1sums = 218ca22f8cb744396fa11e65b8a3d2d1ae07f10e
pkgname = android-platform
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"
}