commit 965529193badf7d14dbdec20c46a82920e376183 parent 52eabd34a45fcf7cc77470b44a11d39feb47ee73 Author: parazyd <parazyd@dyne.org> Date: Tue, 1 Oct 2024 13:16:22 +0200 dev-util/android-sdk-build-tools: Add 34 ebuild Diffstat:
A | dev-util/android-sdk-build-tools/Manifest | | | 1 | + |
A | dev-util/android-sdk-build-tools/android-sdk-build-tools-34.ebuild | | | 40 | ++++++++++++++++++++++++++++++++++++++++ |
A | dev-util/android-sdk-build-tools/metadata.xml | | | 8 | ++++++++ |
3 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/dev-util/android-sdk-build-tools/Manifest b/dev-util/android-sdk-build-tools/Manifest @@ -0,0 +1 @@ +DIST build-tools_r34-linux.zip 61224257 BLAKE2B c1faeb14f3abe4f35cba51bf1d23471e62778532b8d8993d947919ba9a1bc0e06820c02fa74b6cd9c0ca4f5008ba0810b33784646e91339803fa4768fde7e74f SHA512 c28dd52f8eca82996726905617f3cb4b0f0aee1334417b450d296991d7112cab1288f5fd42c48a079ba6788218079f81caa3e3e9108e4a6f27163a1eb7f32bd7 diff --git a/dev-util/android-sdk-build-tools/android-sdk-build-tools-34.ebuild b/dev-util/android-sdk-build-tools/android-sdk-build-tools-34.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Android SDK Build Tools" +HOMEPAGE="https://developer.android.com/studio/releases/build-tools" +# https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html +SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip" + +LICENSE="android" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ncurses" + +RDEPEND="ncurses? ( sys-libs/ncurses-compat ) + sys-libs/zlib" +DEPEND="${RDEPEND}" + +RESTRICT="strip" +QA_PREBUILT="*" + +S="${WORKDIR}/android-14" + +ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}" + +#FIXME: may need: +#dodir /etc/revdep-rebuild +#/opt/android-sdk-update-manager/build-tools/33/lib64/libLLVM_android.so +#/opt/android-sdk-update-manager/build-tools/33/lib64/libclang_android.so + +src_install() { + dodir "${ANDROID_SDK_BUILD_TOOLS_DIR}/" + cp -R "${S}"/* "${ED}/${ANDROID_SDK_BUILD_TOOLS_DIR}/" || die "Copy files failed" + + for linkfile in aapt aapt2 apksigner dexdump zipalign + do + dosym "${EPREFIX}${ANDROID_SDK_BUILD_TOOLS_DIR}/$linkfile" /usr/bin/$linkfile + done +} diff --git a/dev-util/android-sdk-build-tools/metadata.xml b/dev-util/android-sdk-build-tools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blshkv@pentoo.ch</email> + <name>Anton Bolshakov</name> + </maintainer> +</pkgmetadata>