30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'android-tools'
|
|
pkgname=android-tools
|
|
version=33.0.3p1
|
|
revision=1
|
|
archs="armv* aarch64* x86_64* i686* ppc64le*"
|
|
build_style=cmake
|
|
hostmakedepends="perl go protobuf pkg-config"
|
|
makedepends="gtest-devel zlib-devel libusb-devel pcre2-devel
|
|
liblz4-devel libzstd-devel protobuf-devel brotli-devel"
|
|
depends="python3"
|
|
short_desc="Android platform tools (adb and fastboot)"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="Apache-2.0, ISC, GPL-2.0-only, MIT"
|
|
homepage="http://developer.android.com/tools/help/adb.html"
|
|
distfiles="https://github.com/nmeum/android-tools/releases/download/${version}/android-tools-${version}.tar.xz"
|
|
checksum=be2047cf256051674af5aeb4bbfed276989512f80d1191e2864c919061f961d8
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
|
|
fi
|
|
|
|
post_install() {
|
|
# zsh's built in works, while this one doesn't
|
|
rm -f $DESTDIR/usr/share/zsh/site-functions/_adb
|
|
vlicense vendor/boringssl/LICENSE boringssl.LICENSE
|
|
vlicense vendor/boringssl/third_party/fiat/LICENSE fiat.LICENSE
|
|
vsv adb
|
|
}
|