updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / android-ndk-crystax / PKGBUILD
blob0aa8e2ccadf962ed3c1d3b34f1a25879332a71fe
1 # Maintainer: mockfrog <arch AT mockfrog DOT de>
2 # contributor: Côme "MCMic" BERNIGAUD <mcmic@free.fr>
3 # contributor: Marcin "eXine" M. <exine@jun.pl>
5 pkgname=android-ndk-crystax
6 pkgver=6.2
7 pkgrel=1
8 pkgdesc="android C/C++ developer kit with enabled support of C++ exceptions, RTTI and Standard C++ Library"
9 arch=(i686 x86_64)
10 url="http://www.crystax.net/de/android/ndk/6"
11 license=('GPL')
12 depends=(android-sdk)
13 conflicts=(android-ndk)
14 replaces=(android-ndk)
15 source=(http://www.crystax.net/en/download/android-ndk-r6-crystax-2-linux-x86.tar.bz2)
16 md5sums=('f7d4dd14de0a27dffcd208ff919be98d')
17 options=(!strip)
19 package() {
21   install -d "${pkgdir}/opt"
22   install -d "${pkgdir}/etc/profile.d"
23   echo "export PATH=\$PATH:/opt/${pkgname}" > "${pkgdir}/etc/profile.d/${pkgname}.sh"
24   echo "export ANDROID_NDK=/opt/${pkgname}" >> "${pkgdir}/etc/profile.d/${pkgname}.sh"
25   chmod 755 "${pkgdir}/etc/profile.d/${pkgname}.sh"
27   cp -a "${srcdir}/android-ndk-r6-crystax-2" "${pkgdir}/opt/${pkgname}"