diff options
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 +} + |