From aa1936ae2f4cfb8de8bc378215574b95982ffda8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Wed, 28 Aug 2024 07:01:42 +0200 Subject: [PATCH] android-sdk-cmdline-tools: 11076708 --- .../files/android-sdk-cmdline-tools.csh | 3 +++ .../files/android-sdk-cmdline-tools.sh | 3 +++ srcpkgs/android-sdk-cmdline-tools/template | 21 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.csh create mode 100644 srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.sh create mode 100644 srcpkgs/android-sdk-cmdline-tools/template diff --git a/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.csh b/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.csh new file mode 100644 index 0000000..4603f01 --- /dev/null +++ b/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.csh @@ -0,0 +1,3 @@ +setenv ANDROID_HOME '/opt/android-sdk' +setenv ANDROID_SDK_ROOT '/opt/android-sdk' +setenv PATH "${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin" diff --git a/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.sh b/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.sh new file mode 100644 index 0000000..cfd9695 --- /dev/null +++ b/srcpkgs/android-sdk-cmdline-tools/files/android-sdk-cmdline-tools.sh @@ -0,0 +1,3 @@ +export ANDROID_HOME='/opt/android-sdk' +export ANDROID_SDK_ROOT='/opt/android-sdk' +export PATH="${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin" diff --git a/srcpkgs/android-sdk-cmdline-tools/template b/srcpkgs/android-sdk-cmdline-tools/template new file mode 100644 index 0000000..49beafd --- /dev/null +++ b/srcpkgs/android-sdk-cmdline-tools/template @@ -0,0 +1,21 @@ +# Template file for 'android-sdk-cmdline-tools' +pkgname=android-sdk-cmdline-tools +version=11076708 +revision=1 +depends="virtual?java-environment" +short_desc="Android SDK Command-line Tools (latest)" +maintainer="Jozef Steinhübl " +license="custom" +homepage="https://developer.android.com/studio" +distfiles="https://dl.google.com/android/repository/commandlinetools-linux-${version}_latest.zip" +checksum=2d2d50857e4eb553af5a6dc3ad507a17adf43d115264b1afc116f95c92e5e258 + +restricted=yes + +do_install() { + vmkdir "opt/android-sdk/cmdline-tools/latest" + + vcopy "*" "opt/android-sdk/cmdline-tools/latest" + vinstall "${FILESDIR}/${pkgname}.sh" 755 "etc/profile.d" + vinstall "${FILESDIR}/${pkgname}.csh" 755 "etc/profile.d" +}