#@IgnoreInspection BashAddShebang # Maintainer: Jérémy "Vrakfall" Lecocq # Contributor: David Manouchehri # Contributor: Christoph Bayer # Contributor: Bence Hornák # Contributor: lestb # Contributor: danyf90 # Contributor: Philipp Wolfer # Contributor: Joel Pedraza # Contributor: Jakub Schmidtke _apilevel=28 _sdkver='9.0.0' _rev='r04' _image_arch='x86_64' _sdkver_char='P' pkgname="android-${_image_arch/x86_/x86-}-system-image-${_apilevel}" pkgver="${_apilevel}_${_sdkver}_${_rev}" # I use this version labeling 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 ${_image_arch} system image, 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/studio/index.html" license=('custom') # TODO: Link to the license. depends=("android-platform-${_apilevel}") provides=("android-${_image_arch/x86_/x86-}-system-image") options=('!strip') source=("https://dl.google.com/android/repository/sys-img/android/${_image_arch}-${_apilevel}_${_rev}.zip") sha1sums=('d47a85c8f4e9fd57df97814ad8884eeb0f3a0ef0') sha256sums=('ff6ce81aa1424951a214da5f392f8e12382de46d33c08aeaa5d21caba6a39b62') package() { _destdir="${pkgdir}/opt/android-sdk/system-images/android-${_apilevel}/default" mkdir -p "${_destdir}" mv "${srcdir}/${_image_arch}" "${_destdir}" chmod -R ugo+rX "${pkgdir}/opt" }