milis/talimatname/genel/a/android-sdk-build-tools/talimat

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Google Android SDK için araçlar oluşturun (aapt, aidl, dexdump, dx, llvm-rs-cc)
2017-06-30 21:18:09 +02:00
# URL: http://developer.android.com/sdk/index.html
2017-12-22 22:59:36 +01:00
# Paketçi: CihanAlkan
# Gerekler:
# Grup: geliştirme
2017-06-30 21:18:09 +02:00
2017-10-28 14:10:23 +02:00
isim=android-sdk-build-tools
surum=r26
devir=1
kaynak=(https://dl-ssl.google.com/android/repository/build-tools_$surum-linux.zip)
2017-06-30 21:18:09 +02:00
2017-12-22 22:59:36 +01:00
_android=android-8.0.0
_sdk=android-sdk
2017-10-27 23:59:41 +02:00
derle() {
2017-06-30 21:18:09 +02:00
cd $PKG
2017-10-28 14:10:23 +02:00
install -Dm644 $SRC/$_android/NOTICE.txt usr/share/licenses/$isim/NOTICE.txt
2017-06-30 21:18:09 +02:00
ver=$(cat "$SRC/$_android/source.properties" |grep ^Pkg.Revision=|sed 's/Pkg.Revision=\([0-9.]*\).*/\1/')
mkdir -p opt/$_sdk/build-tools/$ver
cp -r $SRC/$_android/* $PKG/opt/$_sdk/build-tools/$ver
chmod +Xr -R $PKG/opt/$_sdk/build-tools/$ver
mkdir $PKG/usr/bin
ln -s /opt/android-sdk/build-tools/26.0.0/aapt $PKG/usr/bin/
ln -s /opt/android-sdk/build-tools/26.0.0/aapt2 $PKG/usr/bin/
ln -s /opt/android-sdk/build-tools/26.0.0/bcc_compat $PKG/usr/bin/
ln -s /opt/android-sdk/build-tools/26.0.0/aidl $PKG/usr/bin/
ln -s /opt/android-sdk/build-tools/26.0.0/dexdump $PKG/usr/bin/
ln -s /opt/android-sdk/build-tools/26.0.0/zipalign $PKG/usr/bin/
}