This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

android-ndk

By: marquicus on Jun 3rd, 2011  |  syntax: None  |  size: 0.91 KB  |  views: 451  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=android-ndk
  2. pkgver=r5b
  3. pkgrel=2
  4. pkgdesc="android C/C++ developer kit"
  5. arch=(i686 x86_64)
  6. url="http://developer.android.com/sdk/ndk/index.html"
  7. license=('GPL')
  8. depends=(android-sdk)
  9. options=(!strip)
  10. makedepends=(tar)
  11. source=(https://dl-ssl.google.com/android/ndk/android-ndk-$pkgver-linux-x86.tar.bz2)
  12. md5sums=('4c0045ddc2bfd657be9d5177d0e0b7e7')
  13. install=$pkgname.install
  14.  
  15. build() {
  16.   cd "$srcdir/"
  17.  
  18.   mkdir -p $pkgdir/opt/
  19.   cp -a $srcdir/$pkgname-$pkgver $pkgdir/opt/android-ndk
  20. }
  21.  
  22. package() {
  23.   cd "$pkgdir/"
  24.   mkdir -p opt etc/profile.d
  25.   echo 'export PATH=$PATH:/opt/android-ndk' > etc/profile.d/android-ndk.sh
  26.   echo 'export ANDROID_NDK=/opt/android-ndk' >> etc/profile.d/android-ndk.sh
  27.   chmod 755 etc/profile.d/android-ndk.sh
  28.  
  29.   chgrp -R 420 opt/$pkgname/{toolchains,platforms,build,ndk-gdb,ndk-build}
  30.   chmod -R g+w opt/$pkgname/{toolchains,platforms,build,ndk-gdb,ndk-build}
  31.  
  32. }
clone this paste RAW Paste Data