aboutsummaryrefslogtreecommitdiffstats
path: root/testing/android-tools/APKBUILD
blob: 4bdc876315c850f1def82e04bce93f802acd310a (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.3
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="36aecee60261230ce831fb98ec06f4cba49f76bc9fd8a617b21b5f5505fff8cee567c7e8b12f14dbe50d2c19fc75c64187ad2f0e35dccdfdeb7abca8c90972f7  android-tools-29.0.3.tar.xz"