summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfarwayer2018-08-23 14:18:43 +0300
committerfarwayer2018-08-23 14:18:43 +0300
commit876e6498d485042c0b7881202337ef68e9a14f4f (patch)
tree3d19efc09372952f0a681f7e12849abb6f64fce7 /PKGBUILD
downloadaur-876e6498d485042c0b7881202337ef68e9a14f4f.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f7bdbeac5e9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+_rev=r06
+_sdkver=9
+_sdkint=28
+pkgname=android-platform-${_sdkint,,}
+pkgver=${_sdkver}_${_rev}
+pkgrel=1
+pkgdesc="Android SDK Platform, API-${_sdkint}"
+arch=('any')
+url="http://developer.android.com/sdk/index.html"
+license=('custom')
+depends=('android-sdk' 'android-sdk-platform-tools')
+conflicts=("android-platform==${_sdkint,,}")
+options=('!strip')
+source=("http://dl.google.com/android/repository/platform-${_sdkint}_${_rev}.zip")
+sha1sums=('9a4e52b1d55bd2e24216b150aafae2503d3efba6')
+
+package() {
+ mkdir -p "${pkgdir}/opt/android-sdk/platforms/"
+ mv "${srcdir}/android-${_sdkver}" "${pkgdir}/opt/android-sdk/platforms/android-${_sdkint}"
+
+ chmod -R ugo+rX "${pkgdir}/opt"
+}