summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarwayer2018-06-04 13:23:53 +0300
committerfarwayer2018-06-04 13:23:53 +0300
commit079225d2af7a0006f75aed5ff51497fa54b491b1 (patch)
tree23e2c79817196e2a9d9cd6f2bbdd319562e9269e
downloadaur-android-platform-27.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD24
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c9652c4bd0f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = android-platform-27
+ pkgdesc = Android SDK Platform, API-27
+ pkgver = 8.1.0_r03
+ pkgrel = 1
+ url = http://developer.android.com/sdk/index.html
+ arch = any
+ license = custom
+ depends = android-sdk
+ depends = android-sdk-platform-tools
+ conflicts = android-platform==27
+ options = !strip
+ source = http://dl.google.com/android/repository/platform-27_r03.zip
+ sha1sums = 35f747e7e70b2d16e0e4246876be28d15ea1c353
+
+pkgname = android-platform-27
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6064234fcd2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.tar.*
+*.zip
+*.7z
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c8167a5d9f1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+_rev=r03
+_sdkver=8.1.0
+_sdkint=27
+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=('35f747e7e70b2d16e0e4246876be28d15ea1c353')
+
+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"
+}