-
-
Save anonymous/fcb67f9194d3862b008e to your computer and use it in GitHub Desktop.
android-ndk
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
post_install() { | |
echo 'Source /etc/profile or relogin to add the Android NDK tools to your path.' | |
} | |
# vim:set ts=2 sw=2 et: |
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
export PATH=$PATH:/opt/android-ndk32 | |
export ANDROID_NDK_32=/opt/android-ndk32 |
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
export PATH=$PATH:/opt/android-ndk64 | |
export ANDROID_NDK_64=/opt/android-ndk64 |
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: frownlee | |
# Contributor: Daniel Micay <danielmicay@gmail.com> | |
pkgbase=android-ndk | |
pkgname=('android-ndk32' 'android-ndk64') | |
pkgver=r10 | |
pkgrel=3 | |
pkgdesc='Android C/C++ developer kit' | |
arch=('x86_64' 'i686') | |
url='http://developer.android.com/sdk/ndk/index.html' | |
license=('GPL' 'LGPL' 'custom') | |
depends=('android-sdk') | |
options=('!strip' 'staticlibs') | |
install="$pkgbase.install" | |
_arch=x86_64 | |
[[ $CARCH == i686 ]] && _arch=x86 | |
source=("${pkgbase}32.tbz2::http://dl.google.com/android/ndk/${pkgbase}32-$pkgver-linux-${_arch}.tar.bz2" | |
"${pkgbase}64.tbz2::http://dl.google.com/android/ndk/${pkgbase}64-$pkgver-linux-${_arch}.tar.bz2" | |
"${pkgbase}32.sh" | |
"${pkgbase}64.sh") | |
noextract=("${pkgbase}32.tbz2" | |
"${pkgbase}64.tbz2") | |
sha256sums=('9d0b4aab6e3f34158a3698226ab7d6c8df4aa8c9cc5242da9b733ac1f988090e' | |
'b99bbc74973d0b2c17df22bc0ba9e61704d6f631deb036885fce05964d9ec921') | |
if [[ $CARCH = i686 ]]; then | |
sha256sums=('7480eea8fe699cfc6a3fcfca9debe8d7e2cd6ef00e31e12b91dead49fcb782b4' | |
'e8bdee2e7696b97e9e9e4ef62a59b39edb38a759dc0a566ff81caf08938c7d9f') | |
fi | |
sha256sums+=('2c4032888a64628b738e3a22df6e2ca78b96e97829a3b1cd8bdfdc0cc80525a7' | |
'cfc23a3215d84816ecd45a9a4be9fe438576fe1ee8e3f10d8276706c2c54c19b') | |
package_android-ndk32() { | |
provides=('android-ndk') | |
replaces=('android-ndk') | |
install -Dm755 "$pkgname.sh" "$pkgdir/etc/profile.d/$pkgname.sh" | |
install -d "$pkgdir/opt" | |
tar -xjf "$pkgname.tbz2" -C "$pkgdir/opt" | |
mv "$pkgdir/opt/$pkgbase-$pkgver" "$pkgdir/opt/$pkgname" | |
} | |
package_android-ndk64() { | |
install -Dm755 "$pkgname.sh" "$pkgdir/etc/profile.d/$pkgname.sh" | |
install -d "$pkgdir/opt" | |
tar -xjf "$pkgname.tbz2" -C "$pkgdir/opt" | |
mv "$pkgdir/opt/$pkgbase-$pkgver" "$pkgdir/opt/$pkgname" | |
} | |
# 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