PKGBUILD 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. pkgbase=android-sdk-meta
  3. pkgname=(android-sdk android-sdk-build-tools android-sdk-platform-tools)
  4. _debver=25.0.0
  5. pkgver=$_debver
  6. _debrel=12
  7. pkgrel=1
  8. arch=(any)
  9. url="https://developer.android.com/studio/releases/sdk-tools.html"
  10. license=('APACHE')
  11. source=("http://ftp.debian.org/debian/pool/main/a/${pkgbase}/${pkgbase}_${_debver}+${_debrel}.tar.xz")
  12. sha512sums=('fa1a9f2a33f03e031e2a2bde6fd74508c4e35c63fb959c1432c08f2d4683362fbde28126c951006bb18d620894273bbf0fef22ec3134fdec145fed9d0aa92794')
  13. package_android-sdk(){
  14. pkgdesc="Software development kit for Android platform"
  15. depends=(proguard android-sdk-build-tools android-sdk-platform-tools)
  16. cd "${pkgbase}"
  17. local bins="e2fsck
  18. fsck.ext4
  19. mkfs.ext4
  20. resize2fs
  21. tune2fs"
  22. mkdir -p $pkgdir/usr/lib/android-sdk/{tools/proguard/{bin,lib},tools/bin,platform-tools,build-tools,licenses}
  23. for f in $bins; do
  24. ln -s /usr/bin/$f $pkgdir/usr/lib/$pkgname/tools/bin/$f
  25. done
  26. ln -s /usr/bin/proguard $pkgdir/usr/lib/$pkgname/tools/proguard/bin/proguard
  27. ln -s /usr/bin/proguardgui $pkgdir/usr/lib/$pkgname/tools/proguard/bin/proguardgui
  28. ln -s /usr/share/proguard/proguard.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/proguard.jar
  29. ln -s /usr/share/proguard/proguardgui.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/proguardgui.jar
  30. ln -s /usr/share/proguard/retrace.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/retrace.jar
  31. cp -r tools $pkgdir/usr/lib/$pkgname
  32. cp licenses/apache-2.0 $pkgdir/usr/lib/$pkgname/licenses/apache-2.0
  33. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  34. cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
  35. }
  36. package_android-sdk-build-tools(){
  37. pkgdesc="Tools for building Android applications"
  38. cd "${pkgbase}"
  39. mkdir -p $pkgdir/usr/lib/android-sdk/build-tools
  40. cp -r build-tools $pkgdir/usr/lib/android-sdk/build-tools/24.0.0
  41. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  42. cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
  43. }
  44. package_android-sdk-platform-tools(){
  45. pkgdesc="Tools for interacting with an Android platform"
  46. depends=(sqlite3 android-tools android-sdk-platform-tools android-udev)
  47. cd "${pkgbase}"
  48. mkdir -p $pkgdir/usr/lib/android-sdk
  49. cp -r platform-tools $pkgdir/usr/lib/android-sdk
  50. ln -s /usr/bin/sqlite3 $pkgdir/usr/lib/android-sdk/platform-tools/sqlite3
  51. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  52. cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
  53. }