diff options
author | David P <megver83@parabola.nu> | 2018-07-17 15:52:33 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2018-07-17 15:52:33 -0400 |
commit | d424f0813c7bee07cdea2b6863540e1b84abfb0d (patch) | |
tree | d9357139851fbe8f30edf86ee44490aa1a36ca8f /pcr-testing/android-sdk-meta/PKGBUILD | |
parent | 1eb217780f1b55e26fb9181bd1d183aeee82270f (diff) | |
download | abslibre-d424f0813c7bee07cdea2b6863540e1b84abfb0d.tar.gz abslibre-d424f0813c7bee07cdea2b6863540e1b84abfb0d.tar.bz2 abslibre-d424f0813c7bee07cdea2b6863540e1b84abfb0d.zip |
addpkg: pcr-testing/android-sdk-meta
Inspired from https://blog.replicant.us/2017/04/there-wont-be-a-replicant-6-0-sdk-because-there-is-already-something-better/
I used the Debian sources since they are fully-free, but I still need to add the API level 23 to build an app, and then move this to [pcr]
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr-testing/android-sdk-meta/PKGBUILD')
-rw-r--r-- | pcr-testing/android-sdk-meta/PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pcr-testing/android-sdk-meta/PKGBUILD b/pcr-testing/android-sdk-meta/PKGBUILD new file mode 100644 index 000000000..1aa05d79c --- /dev/null +++ b/pcr-testing/android-sdk-meta/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: David P. <megver83@parabola.nu> + +pkgbase=android-sdk-meta +pkgname=(android-sdk android-sdk-build-tools android-sdk-platform-tools) +_debver=25.0.0 +pkgver=$_debver +_debrel=8 +pkgrel=1 +arch=(any) +url="https://developer.android.com/studio/releases/sdk-tools.html" +license=('APACHE') +source=("https://debian.simnet.is/debian/pool/main/a/${pkgbase}/${pkgbase}_${_debver}+${_debrel}.tar.xz") +sha512sums=('fecab0a24f9903c350d169dea5b8ffd03ea27c9ea254e9076d063a720dbd89f79458bb8186a4aacdb76e7f425432aaa2be08cb30df5201418ecabae1135958a5') + +package_android-sdk(){ + pkgdesc="Software development kit for Android platform" + depends=(proguard android-sdk-build-tools android-sdk-platform-tools) + + cd "${pkgbase}-${_debver}+${_debrel}" + + local bins="e2fsck + fsck.ext4 + mkfs.ext4 + resize2fs + tune2fs" + + mkdir -p $pkgdir/usr/lib/android-sdk/{tools/proguard/{bin,lib},tools/bin,platform-tools,build-tools,licenses} + for f in $bins; do + ln -s /usr/bin/$f $pkgdir/usr/lib/$pkgname/tools/bin/$f + done + ln -s /usr/bin/proguard $pkgdir/usr/lib/$pkgname/tools/proguard/bin/proguard + ln -s /usr/bin/proguardgui $pkgdir/usr/lib/$pkgname/tools/proguard/bin/proguardgui + ln -s /usr/share/proguard/proguard.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/proguard.jar + ln -s /usr/share/proguard/proguardgui.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/proguardgui.jar + ln -s /usr/share/proguard/retrace.jar $pkgdir/usr/lib/$pkgname/tools/proguard/lib/retrace.jar + + cp -r tools $pkgdir/usr/lib/$pkgname + cp licenses/apache-2.0 $pkgdir/usr/lib/$pkgname/licenses/apache-2.0 + + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT +} + +package_android-sdk-build-tools(){ + pkgver=24.0.0 + pkgdesc="Tools for building Android applications" + + cd "${pkgbase}-${_debver}+${_debrel}" + mkdir -p $pkgdir/usr/lib/android-sdk/build-tools + cp -r build-tools $pkgdir/usr/lib/android-sdk/build-tools/$pkgver + + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT +} + +package_android-sdk-platform-tools(){ + pkgver=24.0.0 + pkgdesc="Tools for interacting with an Android platform" + depends=(sqlite3 android-tools android-sdk-platform-tools android-udev) + + cd "${pkgbase}-${_debver}+${_debrel}" + mkdir -p $pkgdir/usr/lib/android-sdk + cp -r platform-tools $pkgdir/usr/lib/android-sdk + ln -s /usr/bin/sqlite3 $pkgdir/usr/lib/android-sdk/platform-tools/sqlite3 + + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT +} |