summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfarwayer2018-08-23 12:23:09 +0300
committerfarwayer2018-08-23 12:23:09 +0300
commit078c8c2bb439c44dd7269998d41c7d72e90905c7 (patch)
tree749c10cba99ce59e98356c926ef6856ae47ea4c9 /PKGBUILD
downloadaur-android-sdk-build-tools-28.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..61c7f7c5f73
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+pkgname=android-sdk-build-tools-28
+_ver=28
+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_i686=('gcc-libs' 'zlib')
+optdepends=()
+depends_x86_64=('lib32-gcc-libs' 'lib32-zlib')
+_sdk=android-sdk
+
+source=("https://dl-ssl.google.com/android/repository/build-tools_${pkgver}-linux.zip")
+sha1sums=('d9f8a754d833ccd334f56fcc6089c5925cd82abb')
+_android=android-9
+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}
+ ver=$(cat "${srcdir}/$_android/source.properties" |grep ^Pkg.Revision=|sed 's/Pkg.Revision=\([0-9.]*\).*/\1/')
+ 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"
+}