#!/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 }