Date: Wednesday, December 22, 2021 @ 21:03:38
  Author: felixonmars
Revision: 1082893

archrelease: copy trunk to community-staging-x86_64

Added:
  android-tools/repos/community-staging-x86_64/
  android-tools/repos/community-staging-x86_64/PKGBUILD
    (from rev 1082892, android-tools/trunk/PKGBUILD)

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

Copied: android-tools/repos/community-staging-x86_64/PKGBUILD (from rev 
1082892, android-tools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-12-22 21:03:38 UTC (rev 1082893)
@@ -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} # https://github.com/nmeum/android-tools sometimes carries 
extra patch version on top of the upstream versioning
+pkgrel=2
+pkgdesc='Android platform tools'
+arch=(x86_64)
+url='http://tools.android.com/'
+license=(Apache MIT)
+depends=(libusb protobuf brotli zstd android-udev)
+makedepends=(pcre2 gtest cmake go ninja git)
+source=(https://github.com/nmeum/android-tools/releases/download/$_tag/android-tools-$_tag.tar.xz)
+sha256sums=('d7d2d945b6e1a7ba0c7d0b68a6d21ada6914155bf3ca02ff06c9db628ae6b029')
+
+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