From 0d37a1ef234c38b27faba43bc3a22f985d311deb Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 17 May 2023 17:01:27 +0100 Subject: Remove all firmware --- repo/pax-utils/pax-utils.xibuild | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 repo/pax-utils/pax-utils.xibuild (limited to 'repo/pax-utils/pax-utils.xibuild') 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 +} + -- cgit v1.2.1