vp-build/srcpkgs/libseccomp/template
2015-07-07 07:34:15 +02:00

33 lines
848 B
Bash

# Template file for 'libseccomp'
pkgname=libseccomp
version=2.2.2
revision=1
build_style=gnu-configure
hostmakedepends="which automake libtool"
short_desc="High level interface to the Linux Kernel's seccomp filter"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/seccomp/libseccomp/"
license="LGPL-2.1"
distfiles="https://github.com/seccomp/${pkgname}/archive/v${version}.tar.gz"
checksum=b4b6c4b623c985da40a002c5d4297f300a2bf8359fb823eae5fb2b1f07fe694c
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i '/<linux\/prctl.h>/d' src/system.h;;
esac
}
pre_configure() {
./autogen.sh
}
libseccomp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share
}
}