mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/android-sdk-cmdline-tools: add 0_p14742923
Closes: https://bugs.gentoo.org/979007 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST commandlinetools-linux-11076708_latest.zip 153607504 BLAKE2B bd2b96dff99fe429907f8b0b108177d53e4165f9995efa1ab2839ae7e8cd4cc14aa64f1901e6c6ae5e7255a6b63cd6840bad1d4cd5c5267cfe01e7003421f483 SHA512 d143221d0957256c5b172a5be70e5f098a08b2b3097a20c576c8febf444a00a64f626a7f651a7d5123b9ba32418dc0ae7053d0b4b52c40f772a6a1fb19a95417
|
||||
DIST commandlinetools-linux-14742923_latest.zip 172789259 BLAKE2B e02b5f42c08caa193d4dc235e6b20292694214d1f8f944aff6f6eac643b07c06f72715655ebbfcabe553eed6ab4a12b7accdb287f7aebc5129f99e0fb37c03ac SHA512 b65e830d7655fb39cc9eee669806977f462c49375807ef2c6487fabcc9afdbc210465ce6a1e2429ff95c74ca519d1239daf9a403c30b8d0bdb7a0962af656c8e
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit greadme udev
|
||||
|
||||
DESCRIPTION="Open Handset Alliance's Android SDK"
|
||||
HOMEPAGE="https://developer.android.com/tools https://developer.android.com/studio#command-tools"
|
||||
SRC_URI="https://dl.google.com/android/repository/commandlinetools-linux-$(ver_cut 3)_latest.zip"
|
||||
|
||||
S="${WORKDIR}/cmdline-tools"
|
||||
|
||||
LICENSE="android"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="bindist mirror"
|
||||
|
||||
DEPEND="acct-group/android"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
virtual/jre
|
||||
"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
src_install() {
|
||||
local android_sdk_dir="/opt/android-sdk"
|
||||
local target="${android_sdk_dir}/cmdline-tools/latest"
|
||||
|
||||
insinto "${target}"
|
||||
doins -r .
|
||||
|
||||
fowners -R root:android "${android_sdk_dir}"
|
||||
fperms -R 0775 "${android_sdk_dir}"
|
||||
|
||||
newenvd - "80${PN}" <<-EOF
|
||||
PATH="${EPREFIX}${target}/bin"
|
||||
ANDROID_HOME="${EPREFIX}${android_sdk_dir}"
|
||||
EOF
|
||||
|
||||
udev_dorules "${FILESDIR}"/80-android-device.rules
|
||||
|
||||
greadme_stdin <<-EOF
|
||||
The Android SDK now uses its own manager for the development environment.
|
||||
Run 'sdkmanager' to download the full SDK, including some of the platform tools.
|
||||
You must be in the android group to manage the development environment.
|
||||
Just run 'gpasswd -a <USER> android', then have <USER> re-login.
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
greadme_pkg_postinst
|
||||
|
||||
if has_version dev-util/android-sdk-update-manager; then
|
||||
ewarn "This package (${P}) superseeds dev-util/android-sdk-update-manager"
|
||||
ewarn "Consider uninstalling dev-util/android-sdk-update-manager"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
Reference in New Issue
Block a user