void-packages/srcpkgs/libseccomp/template
Andrew J. Hesford 1b75586147 Revert "libseccomp: update to 2.5.0."
This reverts commit aa21e5a7c0.

According to https://github.com/seccomp/libseccomp/issues/273 libseccomp
v2.5.0 unintentionally refuses to allow multiple calls to seccomp_load,
which is a regression.

As a result, xwallpaper is inoperable:
https://github.com/stoeckmann/xwallpaper/issues/23
2020-07-24 01:38:11 -04:00

34 lines
919 B
Bash

# Template file for 'libseccomp'
pkgname=libseccomp
reverts="2.5.0_1"
version=2.4.3
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="High level interface to the Linux Kernel's seccomp filter"
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/seccomp/libseccomp/"
distfiles="https://github.com/seccomp/${pkgname}/archive/v${version}.tar.gz"
checksum=4d86f0bd0847795bf7f7bf6e44cb73edf4417d84f6d8848c23eda99b0c50fce6
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i '/<linux\/prctl.h>/d' src/system.h;;
esac
}
pre_configure() {
NOCONFIGURE=1 ./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/*.a
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}