; The release minirootfs uses the scanelf output of pax-utils. defpkgbuild(scanelf, #:pkgname, "scanelf", #:pkgver, "1.3.8", #:pkgrel, 1, #:pkgdesc, "Inspect ELF metadata and shared library names", #:arch, [#:x86-64, #:aarch64], #:url, "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities", #:license, "GPL-2.0-only", #:depends, ["musl"], #:makedepends, ["linux-headers"], #:source, ["https://dev.gentoo.org/~sam/distfiles/app-misc/pax-utils/pax-utils-1.3.8.tar.xz"], #:sha256sums, ["12a168d1aeae2626efdbde3979da88a60ca80bb38e1db565e95ee441ff1d5a0c"], #:build, fn() { run("vinix-meson", "pax-utils-1.3.8", "build", "-Dlddtree_implementation=none", "-Duse_seccomp=false", "-Duse_libcap=disabled", "-Dbuild_manpages=disabled", "-Dtests=false") run("meson", "compile", "-C", "build", "-j2", "scanelf") }, #:check, fn() { run("vinix-run", "build/scanelf", "-n", "-i", "build/scanelf") }, #:package, fn() { run("install", "-Dm755", "build/scanelf", string-append(pkgdir(), "/usr/bin/scanelf")) run("install", "-Dm644", "pax-utils-1.3.8/man/scanelf.1", string-append(pkgdir(), "/usr/share/man/man1/scanelf.1")) run("install", "-Dm644", "pax-utils-1.3.8/COPYING", string-append(pkgdir(), "/usr/share/licenses/scanelf/COPYING")) })