summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfarawayer2016-07-09 13:19:21 +0300
committerfarawayer2016-07-09 13:19:21 +0300
commit1cccf2537a498d1ba9292995e1b578172723a9d8 (patch)
treea3e0edca0904336c7f35df94f2699f1f99be14a1 /PKGBUILD
downloadaur-android-sdk-build-tools-23.0.1.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd16a2cca2a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+_ver=23.0.1
+_sdk=android-sdk
+_android=android-6.0
+
+pkgname=android-sdk-build-tools-$_ver
+pkgver=r$_ver
+pkgrel=1
+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
+
+source=("https://dl-ssl.google.com/android/repository/build-tools_${pkgver}-linux.zip")
+sha1sums=('b6ba7c399d5fa487d95289d8832e4ad943aed556')
+options=('!strip')
+
+package() {
+ cd "$pkgdir"
+ install -Dm644 "${srcdir}/$_android/NOTICE.txt" usr/share/licenses/$pkgname/NOTICE.txt
+ 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"
+}