diff options
author | Jérémy "Vrakfall" Lecocq | 2019-06-11 06:11:39 +0200 |
---|---|---|
committer | Jérémy "Vrakfall" Lecocq | 2019-06-11 06:14:47 +0200 |
commit | 8bf147bb10beee26fec26549ab0bf9d7608157f4 (patch) | |
tree | b244935437810f68f48326d37c7d67d25989620f | |
download | aur-8bf147bb10beee26fec26549ab0bf9d7608157f4.tar.gz |
Add android-platform for version `29_10.0.0_r01` (API-Level_SDK-Version_Revision).
Signed-off-by: Jérémy "Vrakfall" Lecocq <jeremy@artphotolaurent.be>
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 11 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..820ccf4bf27c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = android-platform-29 + pkgdesc = Android SDK Platform, API 29 + pkgver = 29_10.0.0_r01 + pkgrel = 1 + url = https://developer.android.com/sdk/index.html + arch = any + license = custom + depends = android-sdk + depends = android-sdk-platform-tools + options = !strip + source = https://dl.google.com/android/repository/platform-29_r01.zip + sha1sums = b1e10d134ac69f5e746e9be8015122b18d43c235 + sha256sums = 2c9e961858e03900ffa0801a4f6234aa7223363b629fd8e1be60da9aa09d86bd + +pkgname = android-platform-29 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ba88b43a40f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# IntelliJ project files +.idea +*.iml +out +gen + +# Generated files +*.zip +*.pkg.tar.xz +src +pkg
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..81879d9e682c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +#@IgnoreInspection BashAddShebang +# Maintainer: Jérémy "Vrakfall" Lecocq <jeremy at artphotolaurent dot be> +# Contributor: farwayer <farwayer@gmail.com> +# Contributor: David Manouchehri <manouchehri@riseup.net> +# Contributor: Christoph Bayer <chrbayer@criby.de> +# Contributor: Bence Hornák <hornak dot bence at gmail dot com> +# Contributor: lestb <tkhdlstfl dot l plus aur at gmail dot com> +# Contributor: danyf90 <daniele.formichelli@gmail.com> +# Contributor: Philipp Wolfer <ph.wolfer@gmail.com> +# Contributor: Joel Pedraza <joel@joelpedraza.com> +# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com> + +_apilevel=29 +_sdkShortVer=10 +_sdkver="${_sdkShortVer}.0.0" +_rev='r01' +#_sdkver_char='Q' Not using it yet as it hasn't been revealed. Will probably be Q. Let me know if you find out. +pkgname="android-platform-${_apilevel}" +pkgver="${_apilevel}_${_sdkver}_${_rev}" # I use this version labeling scheme as an attempt to work with all notations. +# across `AUR`. Some use the `API` level, some use the `SDK` version. This way, all the numbers are visible and this +# should be a "higher number" than other versioning schemes (except between `API` levels and some very old versions). +pkgrel=1 +pkgdesc="Android SDK Platform, API ${_apilevel}" +arch=('any') # I actually don't think it works on x86, or not in a fine way. That requires some testing I don't have +# the time to do anyway. +url="https://developer.android.com/sdk/index.html" +license=('custom') # TODO: Link to the license. +depends=('android-sdk' 'android-sdk-platform-tools') +options=('!strip') +source=("https://dl.google.com/android/repository/platform-${_apilevel}_${_rev}.zip") +sha1sums=('b1e10d134ac69f5e746e9be8015122b18d43c235') +sha256sums=('2c9e961858e03900ffa0801a4f6234aa7223363b629fd8e1be60da9aa09d86bd') + +package() { + _destdir="${pkgdir}/opt/android-sdk/platforms" + mkdir -p "${_destdir}" + mv "${srcdir}/android-${_sdkShortVer}" "${_destdir}/android-${_apilevel}" + chmod -R ugo+rX "${pkgdir}/opt" +}
\ No newline at end of file |