summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorHayak32024-09-27 14:33:31 +0800
committerHayak32024-09-27 14:33:31 +0800
commitc50c92a594ebb0fe9c4619a2ffe69b1f0ed1c9b3 (patch)
tree43e4deee06201ef1c34687eefcf45e65e97e1bd2 /PKGBUILD
downloadaur-estrace-git.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..abaafb14b46a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Hayake <youremail@domain.com>
+pkgname=estrace-git
+pkgver=0.2.2.r0.gd8fef85
+pkgrel=1
+pkgdesc="A tool that traces system calls using eBPF"
+arch=('x86_64' 'aarch64')
+url="https://github.com/ri-char/eStrace"
+license=('GPL')
+depends=()
+makedepends=('git' 'lld' 'rust')
+provides=('estrace')
+source=("git+https://github.com/ri-char/eStrace.git")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/eStrace"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+prepare() {
+ rustup target add ${arch}-unknown-linux-musl
+}
+build() {
+ cd "$srcdir/eStrace"
+
+ cargo xtask build --release
+ cargo xtask build --arch aarch64-unknown-linux-musl --release
+}
+
+package() {
+ cd "$srcdir/eStrace"
+ install -Dm 755 "target/$arch-unknown-linux-musl/release/estrace" "$pkgdir/usr/bin/estrace"
+ install -Dm 644 "README.md" "$pkgdir/usr/share/doc/estrace/README.md"
+}