# Template file for 'libseccomp'
pkgname=libseccomp
version=2.6.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool gperf"
checkdepends="which"
short_desc="High level interface to the Linux Kernel's seccomp filter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/seccomp/libseccomp/"
changelog="https://raw.githubusercontent.com/seccomp/libseccomp/main/CHANGELOG"
distfiles="https://github.com/seccomp/${pkgname}/archive/v${version}.tar.gz"
checksum=f9a13e4c633d319a9240189760ca348caa0837c0ebe2a09b17061da8ceaf60f0

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
	}
}
