summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..fb9803156b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: johnguant <rhys @t johnguant dot com>
+
+pkgname=android-sdk-build-tools-22
+pkgver=r22
+_ver=22
+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=('a8a1619dd090e44fac957bce6842e62abf87965b')
+_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"
+}