summaryrefslogtreecommitdiff
path: root/repo/android-tools/android-tools.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/android-tools/android-tools.xibuild')
-rw-r--r--repo/android-tools/android-tools.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/android-tools/android-tools.xibuild b/repo/android-tools/android-tools.xibuild
new file mode 100644
index 0000000..4ad7009
--- /dev/null
+++ b/repo/android-tools/android-tools.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="android-tools"
+DESC="Android platform tools"
+
+MAKEDEPS="pcre2 linux-headers libusb gtest go perl cmake protobuf brotli zstd lz4 ninja"
+
+PKG_VER=31.0.3p2
+SOURCE="https://github.com/nmeum/android-tools/releases/download/$PKG_VER/android-tools-$PKG_VER.tar.xz"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=None
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+