Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Gordin <9ordin @t googlemail dot com>
- pkgname=android-sdk-platform-tools
- pkgver=r11
- pkgrel=1
- pkgdesc='Platform-Tools for Google Android SDK (adb, aapt, aidl, dexdump and dx)'
- arch=('any')
- url="http://developer.android.com/sdk/index.html"
- license=('custom')
- depends=('android-sdk' 'bash')
- _sdk=android-sdk
- _tools="opt/${_sdk}/tools"
- _ptools="opt/${_sdk}/platform-tools"
- source=("http://dl-ssl.google.com/android/repository/platform-tools_${pkgver}-linux.zip"
- "adb")
- sha256sums=('93d866b030f490832b7bf836efca5e7735504b3db80e1696d8ffc5a542cf2a70'
- 'f40df6cfac5f794bec9ea2a08a38abead1f0fd8308f932e352dd23e3782b8a82')
- package() {
- install -D -m755 ${srcdir}/adb ${pkgdir}/etc/rc.d/adb
- cd "$pkgdir"
- mkdir -p opt etc/profile.d
- echo 'export PATH=$PATH:/opt/android-sdk/platform-tools' > etc/profile.d/${pkgname}.sh
- echo 'setenv PATH ${PATH}:/opt/android-sdk/platform-tools' > etc/profile.d/${pkgname}.csh
- chmod 755 etc/profile.d/${pkgname}.{csh,sh}
- mkdir -p opt/$_sdk
- cp -a "$srcdir/platform-tools" $pkgdir/opt/$_sdk/platform-tools
- chmod +Xr -R $pkgdir/opt/$_sdk/platform-tools
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement