summaryrefslogtreecommitdiff
path: root/pcr/android-tools
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-16 11:29:50 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-09-16 11:50:44 +0200
commit8b7c2d6646a12c90f7886abe1c864edeb1b33d40 (patch)
treee34649f0942c843283325cced97b35aa54a90d70 /pcr/android-tools
parent0a6242e7f6fa4b20b555fc90d5feb756aecc699c (diff)
downloadabslibre-8b7c2d6646a12c90f7886abe1c864edeb1b33d40.tar.gz
abslibre-8b7c2d6646a12c90f7886abe1c864edeb1b33d40.tar.bz2
abslibre-8b7c2d6646a12c90f7886abe1c864edeb1b33d40.zip
pcr: Add android-tools 31.0.2 for armv7h
The PKGBUILD was taken from the Arch Linux community repository which is at https://github.com/archlinux/svntogit-community as the old URL (git://git.archlinux.org/svntogit/community.git) isn't up to date and according to #archlinux, the migration to gitlab isn't complete yet. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/android-tools')
-rw-r--r--pcr/android-tools/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/android-tools/PKGBUILD b/pcr/android-tools/PKGBUILD
new file mode 100644
index 000000000..37005019d
--- /dev/null
+++ b/pcr/android-tools/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Anatol Pomozov
+# Contributor: 謝致邦 <Yeking@Red54.com>
+# Contributor: Alucryd <alucryd at gmail dot com>
+
+pkgname=android-tools
+pkgver=31.0.2
+_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=('armv7h')
+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=('61b3bf6c240cb0b4d0ccfef696c55986e06657843627df950fdcf6881af0f8d4')
+
+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
+}