summaryrefslogtreecommitdiff
path: root/repo/pax-utils/pax-utils.xibuild
blob: 1e0033eb17f79de7181c265a845bc77fe7cebd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
}