2019-10-08 16:36:55 +02:00

33 lines
981 B
Plaintext

# 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"