aboutsummaryrefslogtreecommitdiffstats
path: root/testing/android-tools/APKBUILD
blob: fbe32890f30c3bc4a5948f2dc3f2fde1fa2c75ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=android-tools
pkgver=29.0.4
pkgrel=0
pkgdesc="Android platform tools"
url="https://sites.google.com/a/android.com/tools/"
arch="x86 x86_64 aarch64 armv7 armhf"
license="Apache-2.0 MIT"
options="!check" # upstream doesn't have a test suite
makedepends="pcre2-dev linux-headers libusb-dev gtest-dev go perl cmake"
source="https://github.com/nmeum/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"

	mkdir build && cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		..
	make
}

package() {
	cd "$builddir/build"
	make DESTDIR="$pkgdir" install
}

sha512sums="a74bfbea45b1f5b983e716d4c19357d4c17cbf1aa461ab8ae037439fa533946a67dd3df42b191dbde324c4d6ffec6411746553632d91ed3d85c67aae7fcad2df  android-tools-29.0.4.tar.xz"