summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarwayer2018-08-23 12:24:39 +0300
committerfarwayer2018-08-23 12:24:39 +0300
commite4ab4bb9d00c481267f261cab2ec2a709176eaa8 (patch)
tree6997156b3f1dd878735060eb34cf1eab2298ed4c
downloadaur-android-sdk-build-tools-28.0.1.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD33
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..15a229c4749
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = android-sdk-build-tools-28.0.1
+ pkgdesc = Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)
+ pkgver = r28.0.1
+ pkgrel = 1
+ url = http://developer.android.com/sdk/index.html
+ arch = i686
+ arch = x86_64
+ license = custom
+ options = !strip
+ source = https://dl-ssl.google.com/android/repository/build-tools_r28.0.1-linux.zip
+ sha1sums = ee70dfa1fccb58b37cebc9544830511f36a137a0
+ depends_i686 = gcc-libs
+ depends_i686 = zlib
+ depends_x86_64 = lib32-gcc-libs
+ depends_x86_64 = lib32-zlib
+
+pkgname = android-sdk-build-tools-28.0.1
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..623d0e70ff3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d31b44786e7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+pkgname=android-sdk-build-tools-28.0.1
+_ver=28.0.1
+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=('ee70dfa1fccb58b37cebc9544830511f36a137a0')
+_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"
+}