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