#@IgnoreInspection BashAddShebang # Maintainer: Marc Plano-Lesay # Contributor: Jérémy "Vrakfall" Lecocq # Contributor: farwayer # Contributor: David Manouchehri # Contributor: Christoph Bayer # Contributor: Bence Hornák # Contributor: lestb # Contributor: danyf90 # Contributor: Philipp Wolfer # Contributor: Joel Pedraza # Contributor: Jakub Schmidtke _apilevel=29 _sdkShortVer=10 _sdkver="${_sdkShortVer}.0.0" _rev='r05' #_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=('9d8a7e0ffa5168dbca6c60355b9129c6c7572aff') sha256sums=('951da8bf175254da74626824f919bd28def64f8828f29dd3b124a535cf4049d8') package() { _destdir="${pkgdir}/opt/android-sdk/platforms" mkdir -p "${_destdir}" mv "${srcdir}/android-${_sdkShortVer}" "${_destdir}/android-${_apilevel}" chmod -R ugo+rX "${pkgdir}/opt" }