Username: Password: Remember me
# Maintainer:  danyf90 <daniele.formichelli@gmail.com>
# Contributor: xgdgsc <xgdgsc @t gmail dot com>
 
pkgname=android-sdk-build-tools
_ver=29.0.3
pkgver=r$_ver
pkgrel=1
pkgdesc='Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)'
arch=('x86_64')
url="http://developer.android.com/sdk/index.html"
license=('custom')
depends=('lib32-gcc-libs' 'lib32-zlib')
source=("http://dl-ssl.google.com/android/repository/build-tools_$pkgver-linux.zip")
sha512sums=('845e527b3ef809d5e32bdce0023401ae80c545504f152d7c05ccef64e4006def6cbda07a295a66518356e992abbbe8f30522c5e63d6eb12a1651c614643602d8')
options=('!strip')
_sdk=android-sdk
_android=android-10
 
package() {
  install -d $pkgdir/opt/$_sdk/build-tools/$_ver
 
  install -Dm644 $_android/NOTICE.txt $pkgdir/usr/share/licenses/$pkgname/NOTICE.txt
 
  cp -r $_android/* $pkgdir/opt/$_sdk/build-tools/$_ver
  chmod +Xr -R $pkgdir/opt/$_sdk/build-tools/$_ver
}