Created
July 17, 2013 12:36
-
-
Save yorickpeterse/6020161 to your computer and use it in GitHub Desktop.
PKGBUILD for building Android 4 on Arch Linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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