diff options
author | davidovski <david@davidovski.xyz> | 2023-05-17 17:01:27 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-05-17 17:01:27 +0100 |
commit | 0d37a1ef234c38b27faba43bc3a22f985d311deb (patch) | |
tree | dde8df9f508e7323c3d7df599ceade7705c40acd /repo/pax-utils/pax-utils.xibuild | |
parent | f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff) |
Remove all firmware
Diffstat (limited to 'repo/pax-utils/pax-utils.xibuild')
-rw-r--r-- | repo/pax-utils/pax-utils.xibuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/repo/pax-utils/pax-utils.xibuild b/repo/pax-utils/pax-utils.xibuild new file mode 100644 index 0000000..1e0033e --- /dev/null +++ b/repo/pax-utils/pax-utils.xibuild @@ -0,0 +1,41 @@ +#!/bin/sh + +NAME="pax-utils" +DESC="ELF related utils for ELF 32/64 binaries" + +MAKEDEPS="" + +PKG_VER=1.3.5 +SOURCE="https://dev.gentoo.org/~sam/distfiles/app-misc/pax-utils/pax-utils-$PKG_VER.tar.xz" + +build() { + meson --prefix=/usr \ + \ + -Dlddtree_implementation=sh \ + -Duse_seccomp=false \ + . output + meson compile -C output +} + +package() { + DESTDIR="$PKG_DEST" meson install --no-rebuild -C output + + # Don't conflict with main/lddtree + mv "$PKG_DEST"/usr/bin/lddtree "$PKG_DEST"/usr/bin/lddtreepax +} + +_scanelf() { + depends="" + pkgdesc="Scan ELF binaries for stuff" + replaces="pax-utils" + + amove usr/bin/scanelf +} + +_lddtreepax() { + depends="python3 py3-elftools" + pkgdesc="Read and package ELF dependency trees" + + amove usr/bin/lddtreepax +} + |