Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PKGBUILD for building Android 4 on Arch Linux.
pkgname=android-4.0.3
pkgver=r03
pkgrel=3
pkgdesc='Platform for Google Android SDK'
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
depends=('android-sdk>=r17')
_android_api=android-15
_android_ver=android-4.0.4
_android_arm=armeabi-v7a
_sysimg_ver=15_r02
_platform="opt/android-sdk/platforms"
_images="opt/android-sdk/system-images/${_android_api}"
source=(
https://dl-ssl.google.com/android/repository/${_android_api}_${pkgver}.zip
https://dl-ssl.google.com/android/repository/sysimg_armv7a-${_sysimg_ver}.zip
)
md5sums=('4c762338ad46f57babcc91e5bbefb15b'
'447d9f076139e4e3fda3f26e39fef655')
build() {
cd ${srcdir}
# fix permissions
chmod -R o+rX ${_android_ver}
chmod -R o+rX ${_android_arm}
}
package() {
mkdir -p ${pkgdir}/${_platform}
mkdir -p ${pkgdir}/${_images}
mv ${srcdir}/${_android_ver} ${pkgdir}/${_platform}/${_android_api}
mv ${srcdir}/${_android_arm} ${pkgdir}/${_images}/${_android_arm}
}
# vim:set ts=2 sw=2 et ft=sh:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.