Want more features on Pastebin? Sign Up, it's FREE!
Guest

Test

By: a guest on Mar 22nd, 2012  |  syntax: None  |  size: 1.10 KB  |  views: 118  |  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. # Maintainer: Gordin <9ordin @t googlemail dot com>
  2.  
  3. pkgname=android-sdk-platform-tools
  4. pkgver=r11
  5. pkgrel=1
  6. pkgdesc='Platform-Tools for Google Android SDK (adb, aapt, aidl, dexdump and dx)'
  7. arch=('any')
  8. url="http://developer.android.com/sdk/index.html"
  9. license=('custom')
  10. depends=('android-sdk' 'bash')
  11. _sdk=android-sdk
  12. _tools="opt/${_sdk}/tools"
  13. _ptools="opt/${_sdk}/platform-tools"
  14.  
  15. source=("http://dl-ssl.google.com/android/repository/platform-tools_${pkgver}-linux.zip"
  16.         "adb")
  17.  
  18. sha256sums=('93d866b030f490832b7bf836efca5e7735504b3db80e1696d8ffc5a542cf2a70'
  19.             'f40df6cfac5f794bec9ea2a08a38abead1f0fd8308f932e352dd23e3782b8a82')
  20.  
  21. package() {
  22.   install -D -m755 ${srcdir}/adb ${pkgdir}/etc/rc.d/adb
  23.   cd "$pkgdir"
  24.   mkdir -p opt etc/profile.d
  25.   echo 'export PATH=$PATH:/opt/android-sdk/platform-tools' > etc/profile.d/${pkgname}.sh
  26.   echo 'setenv PATH ${PATH}:/opt/android-sdk/platform-tools' > etc/profile.d/${pkgname}.csh
  27.   chmod 755 etc/profile.d/${pkgname}.{csh,sh}
  28.   mkdir -p opt/$_sdk
  29.   cp -a "$srcdir/platform-tools" $pkgdir/opt/$_sdk/platform-tools
  30.   chmod +Xr -R $pkgdir/opt/$_sdk/platform-tools
  31. }
clone this paste RAW Paste Data