summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Wörner2016-12-28 14:26:44 +0100
committerSimon Wörner2016-12-28 14:26:44 +0100
commit0d7cb4a012093d4978c4a3855e65872eac9e0a81 (patch)
tree6c8de8a02107114bf057425b32956923451986cd /PKGBUILD
downloadaur-android-sdk-build-tools-24.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ac0b8464e082
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: SWW13 < aur at brn.li >
+
+_ver=24
+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_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=('c6271c4d78a5612ea6c7150688bcd5b7313de8d1')
+_android=android-N
+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"
+}
+