-
-
Save anonymous/6bedcde142996f9ca80e to your computer and use it in GitHub Desktop.
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
# Maintainer: Alexander Rødseth <rodseth@gmail.com> | |
# Contributor: Daniel Micay <danielmicay@gmail.com> | |
pkgname=android-ndk | |
pkgver=r10c | |
pkgrel=1 | |
pkgdesc='Android C/C++ developer kit' | |
arch=('x86_64' 'i686') | |
url='http://developer.android.com/sdk/ndk/' | |
license=('GPL' 'LGPL' 'custom') | |
depends=('android-sdk') | |
options=('!strip' 'staticlibs') | |
backup=('etc/profile.d/android-ndk.sh') | |
install="$pkgname.install" | |
_arch=x86 | |
[[ $CARCH = x86_64 ]] && _arch=x86_64 | |
source=("http://dl.google.com/android/ndk/${pkgname}-${pkgver}-linux-${_arch}.bin" 'android-ndk.sh') | |
md5sums=('d1595d9ca5e15484e047f1ac326c4ceb' '372f74400bfa061642c4b4175f2ddb48') | |
[[ $CARCH = x86_64 ]] && md5sums[0]='792c61706cd9ec6713fa1b69b2f42996' | |
package() { | |
provides=('android-ndk32' 'android-ndk64') | |
replaces=('android-ndk32' 'android-ndk64') | |
install -d "$pkgdir/opt" | |
cp -r "$pkgname-$pkgver" "$pkgdir/opt/$pkgname" | |
install -Dm755 android-ndk.sh "$pkgdir/etc/profile.d/android-ndk.sh" | |
# Fix broken permissions | |
chmod -R o=g "$pkgdir/opt/$pkgname" | |
find "$pkgdir/opt/$pkgname" -perm 744 -exec chmod 755 {} + | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment