# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=android-tools pkgver=9.0.0_p33 _realver=${pkgver/_p/_r} pkgrel=0 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="db20f13f5752dbc5276291d9d7d6a68ad961200ee1a6252049fcdf70eab1f5bd1dad389b870a1cc9b0512aaf1504d9be3b28c67656c26736f40996625a634c9d android-tools-9.0.0_r33.tar.xz"