void-packages/srcpkgs/sydbox/template

41 lines
1.1 KiB
Bash

# Template file for 'sydbox'
pkgname=sydbox
version=1.2.1
revision=1
wrksrc="$pkgname-1-$version"
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool pinktrace-devel"
makedepends="pinktrace-devel"
short_desc="Utility for ptrace() sandboxing"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="http://dev.exherbo.org/~alip/sydbox/sydbox.html"
distfiles="http://git.exherbo.org/$pkgname-1.git/snapshot/$pkgname-1-$version.tar.gz"
checksum=50a17c3639ec46ce1c9a70844b6e01888264e396d5da607aab2f20a1f204ca04
python_version=2 #unverified
# https://github.com/sydbox/pinktrace/blob/main/pinktrace/abi.h
# implemented for x86_64 and i386 in sydbox, but pinktrace does
# not seem to have i386, so only enable for x86_64
case "$XBPS_TARGET_MACHINE" in
x86_64*) configure_args+=" --enable-seccomp" ;;
*) configure_args+=" --disable-seccomp" ;;
esac
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
}
sydbox-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}