diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-08-24 05:59:11 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-08-24 06:11:13 +0200 |
commit | bec05df8e16ea9c7695daaf07d7814c6fa4dc5fc (patch) | |
tree | 9fe011d4c897ffc01ba063e857fc019d5be6e1d6 /retired/android-sdk-meta/PKGBUILD | |
parent | fd79b2ee02da37a265d8b37e20d7cc08f40bd1e1 (diff) | |
download | abslibre-bec05df8e16ea9c7695daaf07d7814c6fa4dc5fc.tar.gz abslibre-bec05df8e16ea9c7695daaf07d7814c6fa4dc5fc.tar.bz2 abslibre-bec05df8e16ea9c7695daaf07d7814c6fa4dc5fc.zip |
Move android-sdk-meta to retired
As far as I know the android-sdk package is a work in
progress that didn't progress much since 2018. According to the
commit that added it in pcr-testing:
commit d424f0813c7bee07cdea2b6863540e1b84abfb0d
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]
In addition, proguard was removed as it was not built from source.
Still it's a good idea to keep that work visible in case someone
wants to add an android-sdk to Parabola.
This way the people wanting to work on that SDK would hopefuly not
redo all the work because they didn't know that someone already
did part of it. So instead they could at least learn from it and
hopefuly save time by reusing what has already been done.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'retired/android-sdk-meta/PKGBUILD')
-rw-r--r-- | retired/android-sdk-meta/PKGBUILD | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/retired/android-sdk-meta/PKGBUILD b/retired/android-sdk-meta/PKGBUILD new file mode 100644 index 000000000..26f33e7fe --- /dev/null +++ b/retired/android-sdk-meta/PKGBUILD @@ -0,0 +1,66 @@ +# 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=12 +pkgrel=1 +arch=(any) +url="https://developer.android.com/studio/releases/sdk-tools.html" +license=('APACHE') +source=("http://ftp.debian.org/debian/pool/main/a/${pkgbase}/${pkgbase}_${_debver}+${_debrel}.tar.xz") +sha512sums=('fa1a9f2a33f03e031e2a2bde6fd74508c4e35c63fb959c1432c08f2d4683362fbde28126c951006bb18d620894273bbf0fef22ec3134fdec145fed9d0aa92794') + +package_android-sdk(){ + pkgdesc="Software development kit for Android platform" + depends=(proguard android-sdk-build-tools android-sdk-platform-tools) + + cd "${pkgbase}" + + 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(){ + pkgdesc="Tools for building Android applications" + + cd "${pkgbase}" + mkdir -p $pkgdir/usr/lib/android-sdk/build-tools + cp -r build-tools $pkgdir/usr/lib/android-sdk/build-tools/24.0.0 + + mkdir -p $pkgdir/usr/share/licenses/$pkgname + cp debian/copyright $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT +} + +package_android-sdk-platform-tools(){ + pkgdesc="Tools for interacting with an Android platform" + depends=(sqlite3 android-tools android-sdk-platform-tools android-udev) + + cd "${pkgbase}" + 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 +} |