aboutsummaryrefslogtreecommitdiffstats
path: root/testing/android-tools/APKBUILD
blob: 2feb5a72cebedbd7d91ef5c46bdf556e8b835942 (plain) (blame)
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
33
34
35
36
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=android-tools
pkgver=9.0.0_p3
_realver=${pkgver/_p/_r}
pkgrel=0
pkgdesc="Android platform tools"
url="http://tools.android.com/"
arch="all !s390x"
license="Apache-2.0 MIT"
depends=""
depends_dev=""
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/$_realver/$pkgname-$_realver.tar.xz"
builddir="$srcdir/$pkgname-$_realver"

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="6e4e3064ba667cc5511b0819206348164f64a7127eef8c21198d434032e4a2342794581c043c2754584055f3e09a70ee81a495915e42d26e3076c6349e71fe23  android-tools-9.0.0_r3.tar.xz"