Date: Tuesday, August 9, 2022 @ 15:57:56
  Author: anatolik
Revision: 1263740

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 1263739, android-tools/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: android-tools/repos/community-testing-x86_64/PKGBUILD (from rev 
1263739, android-tools/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-08-09 15:57:56 UTC (rev 1263740)
@@ -0,0 +1,33 @@
+# Maintainer: Anatol Pomozov
+# Contributor: 謝致邦 <yek...@red54.com>
+# Contributor: Alucryd <alucryd at gmail dot com>
+
+pkgname=android-tools
+pkgver=31.0.3
+_tag=${pkgver}p2 # https://github.com/nmeum/android-tools sometimes carries 
extra patch version on top of the upstream versioning
+pkgrel=7
+pkgdesc='Android platform tools'
+arch=(x86_64)
+url='http://tools.android.com/'
+license=(Apache MIT)
+depends=(libusb protobuf brotli zstd android-udev pcre2)
+makedepends=(gtest cmake go ninja git)
+source=(https://github.com/nmeum/android-tools/releases/download/$_tag/android-tools-$_tag.tar.xz)
+sha256sums=('2e1274d625368f57128477c2cda8474489443cc56e8738cb71919412a2872fca')
+
+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
+}

Reply via email to