[arch-commits] Commit in android-tools/repos (2 files)
Anatol Pomozov
anatolik at archlinux.org
Sun Mar 28 21:29:34 UTC 2021
Date: Sunday, March 28, 2021 @ 21:29:34
Author: anatolik
Revision: 907952
archrelease: copy trunk to community-testing-x86_64
Added:
android-tools/repos/community-testing-x86_64/
android-tools/repos/community-testing-x86_64/PKGBUILD
(from rev 907950, android-tools/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: android-tools/repos/community-testing-x86_64/PKGBUILD (from rev 907950, android-tools/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-03-28 21:29:34 UTC (rev 907952)
@@ -0,0 +1,33 @@
+# Maintainer: Anatol Pomozov
+# Contributor: 謝致邦 <Yeking at Red54.com>
+# Contributor: Alucryd <alucryd at gmail dot com>
+
+pkgname=android-tools
+pkgver=31.0.0
+_tag=${pkgver} # https://github.com/nmeum/android-tools sometimes carries extra patch version on top of the upstream versioning
+pkgrel=1
+pkgdesc='Android platform tools'
+arch=(x86_64)
+url='http://tools.android.com/'
+license=(Apache MIT)
+depends=(libusb protobuf brotli zstd)
+makedepends=(pcre2 gtest cmake go ninja)
+source=(https://github.com/nmeum/android-tools/releases/download/$_tag/android-tools-$_tag.tar.xz)
+sha256sums=('0b8f16370072d03e9f26de17ecba7dd44771cb042a23e86869108d57eb22f20d')
+
+build() {
+ cd android-tools-$_tag
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -G Ninja -S . -B build
+}
+
+package() {
+ cd android-tools-$_tag
+
+ DESTDIR="${pkgdir}" ninja -C build install
+}
More information about the arch-commits
mailing list