blob: 9152b7578612876902a58271ad5bf2d061c4368a (
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
33
34
35
36
37
38
39
40
|
# 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_p33
_realver=${pkgver/_p/_r}
pkgrel=1
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"
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"
case "$CARCH" in
aarch64|arm*) CXXFLAGS="$CXXFLAGS -Wno-error=attributes";;
esac
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="db20f13f5752dbc5276291d9d7d6a68ad961200ee1a6252049fcdf70eab1f5bd1dad389b870a1cc9b0512aaf1504d9be3b28c67656c26736f40996625a634c9d android-tools-9.0.0_r33.tar.xz"
|