summaryrefslogtreecommitdiff
path: root/manualPorts/pax-utils/Pkgfile
blob: 0c4f52ce9da897427058f4680874496ef82dad6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Description: ELF utils that can check files for security relevant properties
# URL: https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: bash libcap libseccomp meson python3 python3-pyelftools

name=pax-utils
version=1.3.6
release=1
source=("https://github.com/gentoo/$name/archive/refs/tags/v$version.tar.gz")

build() {

    sed -E 's|(  paths =) \[\]|\1 ["/usr/lib"]|g' -i $name-$version/lddtree.py

    meson $name-$version build -Duse_seccomp=true
    meson compile -C build
    meson install -C build --destdir "$PKG"

}