Natanael Copa 2132549f51 testing/android-tools: only build on x86 and x86_64
Those are the only arches that builds, currently.
2018-10-12 19:49:04 +00:00

37 lines
1.0 KiB
Plaintext

# 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=1
pkgdesc="Android platform tools"
url="https://sites.google.com/a/android.com/tools/"
arch="x86 x86_64"
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"