android-sdk-build-tools-34.ebuild (1144B)
1 # Copyright 1999-2023 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=7 5 6 DESCRIPTION="Android SDK Build Tools" 7 HOMEPAGE="https://developer.android.com/studio/releases/build-tools" 8 # https://androidsdkoffline.blogspot.com/p/android-sdk-build-tools.html 9 SRC_URI="https://dl.google.com/android/repository/build-tools_r${PV}-linux.zip" 10 11 LICENSE="android" 12 SLOT="0" 13 KEYWORDS="amd64 x86" 14 IUSE="ncurses" 15 16 RDEPEND="ncurses? ( sys-libs/ncurses-compat ) 17 sys-libs/zlib" 18 DEPEND="${RDEPEND}" 19 20 RESTRICT="strip" 21 QA_PREBUILT="*" 22 23 S="${WORKDIR}/android-14" 24 25 ANDROID_SDK_BUILD_TOOLS_DIR="/opt/android-sdk-update-manager/build-tools/${PV}" 26 27 #FIXME: may need: 28 #dodir /etc/revdep-rebuild 29 #/opt/android-sdk-update-manager/build-tools/33/lib64/libLLVM_android.so 30 #/opt/android-sdk-update-manager/build-tools/33/lib64/libclang_android.so 31 32 src_install() { 33 dodir "${ANDROID_SDK_BUILD_TOOLS_DIR}/" 34 cp -R "${S}"/* "${ED}/${ANDROID_SDK_BUILD_TOOLS_DIR}/" || die "Copy files failed" 35 36 for linkfile in aapt aapt2 apksigner dexdump zipalign 37 do 38 dosym "${EPREFIX}${ANDROID_SDK_BUILD_TOOLS_DIR}/$linkfile" /usr/bin/$linkfile 39 done 40 }