blob: 65dbcff5d2df02fc707ea3d8e0f9cb7795852357 (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=android-tools
pkgver=8.1.0_p33
_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="81c14ca25b14ac20bfe18fcec7703bce05fde54a2774c8706eb9a53aac40548ead872be331d9cf0ee41202a49618d7c7f8acd17e64dcd0d9a9f24b52b91ad242 android-tools-8.1.0_r33.tar.xz"
|