summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2021-02-18 14:30:57 +0800
committerChih-Hsuan Yen2021-02-18 14:30:57 +0800
commite6a4aed666c4f4c71afca7ca5525ca74f56febb5 (patch)
tree3d3c40fee12b12edc040d110cf97ec2de9391c4b
downloadaur-e6a4aed666c4f4c71afca7ca5525ca74f56febb5.tar.gz
new package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD46
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..73cba833dec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = android-aarch64-strace
+ pkgdesc = A diagnostic, debugging and instructional userspace tracer (Android, aarch64)
+ pkgver = 5.11
+ pkgrel = 1
+ url = https://strace.io/
+ arch = any
+ license = BSD
+ makedepends = android-ndk
+ options = !buildflags
+ options = !strip
+ source = https://github.com/strace/strace/releases/download/v5.11/strace-5.11.tar.xz
+ source = https://github.com/strace/strace/releases/download/v5.11/strace-5.11.tar.xz.asc
+ validpgpkeys = 296D6F29A020808E8717A8842DB5BD89A340AEB7
+ sha1sums = 1b7a533a45b9ca351d7a14702c044b917d11e979
+ sha1sums = SKIP
+
+pkgname = android-aarch64-strace
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f1a4e5d349e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
+# Forked from extra/strace. Original contributors:
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+_pkgname=strace
+_pkg_arch=aarch64
+pkgname=android-${_pkg_arch/_/-}-$_pkgname
+pkgver=5.11
+pkgrel=1
+pkgdesc="A diagnostic, debugging and instructional userspace tracer (Android, $_pkg_arch)"
+arch=(any)
+url='https://strace.io/'
+license=(BSD)
+makedepends=(android-ndk)
+options=(!buildflags !strip)
+source=(https://github.com/strace/strace/releases/download/v$pkgver/strace-$pkgver.tar.xz{,.asc})
+sha1sums=('1b7a533a45b9ca351d7a14702c044b917d11e979'
+ 'SKIP')
+validpgpkeys=('296D6F29A020808E8717A8842DB5BD89A340AEB7') # Dmitry V. Levin <ldv@altlinux.org>
+
+prepare() {
+ cd $_pkgname-$pkgver
+ # Upstream bundled Linux uapi header breaks building
+ # https://github.com/strace/strace/issues/174
+ rm -vf bundled/linux/include/uapi/linux/socket.h
+}
+
+build() {
+ cd $_pkgname-$pkgver
+ export PATH="/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
+ CC=$_pkg_arch-linux-android21-clang \
+ ./configure --prefix=/opt/android-libs/${_pkg_arch/_/-} \
+ --host=$_pkg_arch-linux-android \
+ --without-libunwind \
+ --enable-mpers=no \
+ --disable-gcc-Werror
+ make
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install-exec
+ rm -v "$pkgdir"/opt/android-libs/${_pkg_arch/_/-}/bin/strace-*
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}