talimat 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Tanım: Google Android SDK için araçlar oluşturun (aapt, aidl, dexdump, dx, llvm-rs-cc)
  2. # URL: http://developer.android.com/sdk/index.html
  3. # Paketçi: CihanAlkan
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=android-sdk-build-tools
  7. surum=r26
  8. devir=1
  9. kaynak=(https://dl-ssl.google.com/android/repository/build-tools_$surum-linux.zip)
  10. _android=android-8.0.0
  11. _sdk=android-sdk
  12. derle() {
  13. cd $PKG
  14. install -Dm644 $SRC/$_android/NOTICE.txt usr/share/licenses/$isim/NOTICE.txt
  15. ver=$(cat "$SRC/$_android/source.properties" |grep ^Pkg.Revision=|sed 's/Pkg.Revision=\([0-9.]*\).*/\1/')
  16. mkdir -p opt/$_sdk/build-tools/$ver
  17. cp -r $SRC/$_android/* $PKG/opt/$_sdk/build-tools/$ver
  18. chmod +Xr -R $PKG/opt/$_sdk/build-tools/$ver
  19. mkdir $PKG/usr/bin
  20. ln -s /opt/android-sdk/build-tools/26.0.0/aapt $PKG/usr/bin/
  21. ln -s /opt/android-sdk/build-tools/26.0.0/aapt2 $PKG/usr/bin/
  22. ln -s /opt/android-sdk/build-tools/26.0.0/bcc_compat $PKG/usr/bin/
  23. ln -s /opt/android-sdk/build-tools/26.0.0/aidl $PKG/usr/bin/
  24. ln -s /opt/android-sdk/build-tools/26.0.0/dexdump $PKG/usr/bin/
  25. ln -s /opt/android-sdk/build-tools/26.0.0/zipalign $PKG/usr/bin/
  26. }