summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Davies2015-06-09 20:41:35 +1200
committerRhys Davies2015-06-09 20:41:35 +1200
commit8f87f6d108f7500ba9056b038449890a97b6a484 (patch)
treed2d9e26aaf2b9bbc82064c2fb827bf04cec15488
downloadaur-8f87f6d108f7500ba9056b038449890a97b6a484.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rwxr-xr-xPKGBUILD38
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e7e4dad6024
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = android-sdk-build-tools-22.0.1
+ pkgdesc = Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)
+ pkgver = r22.0.1
+ pkgrel = 2
+ url = http://developer.android.com/sdk/index.html
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = gcc-libs
+ depends = zlib
+ provides = android-sdk-build-tools=r22.0.1
+ options = !strip
+ source = https://dl-ssl.google.com/android/repository/build-tools_r22.0.1-linux.zip
+ sha1sums = da8b9c5c3ede39298e6cf0283c000c2ee9029646
+
+pkgname = android-sdk-build-tools-22.0.1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..887ab2f7e93
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: johnguant <rhys @t johnguant dot com>
+
+pkgname=android-sdk-build-tools-22.0.1
+pkgver=r22.0.1
+_ver=22.0.1
+pkgrel=2
+pkgdesc='Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)'
+arch=('i686' 'x86_64')
+url="http://developer.android.com/sdk/index.html"
+license=('custom')
+depends=('gcc-libs' 'zlib')
+optdepends=()
+provides=("android-sdk-build-tools=$pkgver")
+
+if [[ $CARCH = x86_64 ]]; then
+ depends=('lib32-gcc-libs' 'lib32-zlib')
+fi
+
+_sdk=android-sdk
+
+source=("https://dl-ssl.google.com/android/repository/build-tools_${pkgver}-linux.zip")
+sha1sums=('da8b9c5c3ede39298e6cf0283c000c2ee9029646')
+_android=android-5.1
+options=('!strip')
+
+package() {
+
+ cd "$pkgdir"
+ install -Dm644 "${srcdir}/$_android/NOTICE.txt" usr/share/licenses/$pkgname/NOTICE.txt
+ # mkdir -p opt etc/profile.d
+ # echo 'export PATH=$PATH:/opt/android-sdk/build-tools/'"$_ver/" > etc/profile.d/${pkgname}.sh
+ # echo 'setenv PATH ${PATH}:/opt/android-sdk/build-tools/'"$_ver/" > etc/profile.d/${pkgname}.csh
+ # chmod 755 etc/profile.d/${pkgname}.{csh,sh}
+
+ mkdir -p opt/$_sdk/build-tools/$_ver
+ cp -r "$srcdir/$_android/"* "$pkgdir/opt/$_sdk/build-tools/$_ver"
+ chmod +Xr -R "$pkgdir/opt/$_sdk/build-tools/$_ver"
+}