summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarwayer2017-12-09 14:30:30 +0300
committerfarwayer2017-12-09 14:30:30 +0300
commitfeb1018325583689a0486e2af414c666e6708cc8 (patch)
tree2efd0a1151a5755c1632fbab4989a0833cf2ff95
downloadaur-feb1018325583689a0486e2af414c666e6708cc8.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rwxr-xr-xPKGBUILD34
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..39663e068b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = android-sdk-build-tools-26.0.2
+ pkgdesc = Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)
+ pkgver = r26.0.2
+ 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_r26.0.2-linux.zip
+ sha1sums = 5b2b7b66c7bf2151f2af183b5b50a17808850592
+ depends_i686 = gcc-libs
+ depends_i686 = zlib
+ depends_x86_64 = lib32-gcc-libs
+ depends_x86_64 = lib32-zlib
+
+pkgname = android-sdk-build-tools-26.0.2
+
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 100755
index 00000000000..b509097d183
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Submitter: xgdgsc <xgdgsc @t gmail dot com>
+# Maintainer: farwayer <farwayer@gmail.com>
+
+pkgname=android-sdk-build-tools-26.0.3
+_ver=26.0.3
+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=('8a2e6c1bcd845844523a68aa17e5442f0dce328c')
+_android=android-8.1.0
+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"
+}