#@IgnoreInspection BashAddShebang # Maintainer: Jérémy "Vrakfall" Lecocq # Contributor: Bence Hornák # Contributor: Philipp Wolfer # Contributor: Joel Pedraza # Contributor: Jakub Schmidtke _rev=r01 _sdkint=28 _sdkver=9.0.0 pkgname="android-sources-${_sdkint}" pkgver="${_sdkver}_${_rev}" pkgrel=1 pkgdesc="Android SDK Sources, API-${_sdkint}" arch=(any) url="https://developer.android.com/studio/index.html" license=('custom') provides=("android-sources") options=('!strip') source=("https://dl.google.com/android/repository/sources-${_sdkint}_${_rev}.zip") sha256sums=('7c05aecdc5b56a8d30837ff80885e95736e455aef4d442a5f5f39fe9652250f0') package() { mkdir -p "${pkgdir}/opt/android-sdk/sources/" cp -dpr --no-preserve=ownership "${srcdir}/src" "${pkgdir}/opt/android-sdk/sources/android-${_sdkint}" chmod -R ugo+rX "${pkgdir}/opt" }