smlinux/base/libseccomp/libseccomp.SMBuild

34 lines
810 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libseccomp
version=2.4.2
build=1sml
homepage="https://github.com/seccomp/libseccomp"
download="https://github.com/seccomp/libseccomp/releases/download/v$version/libseccomp-$version.tar.gz"
desc="library providing easy and independent interface to kernel syscall filtering mechanism"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr \
--disable-static
make
make install DESTDIR=$pkg
cp LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
6396fa4795193bc9138894f2969ec0a1659282380ab5a287ab30e0ed7004ec29671c66ca29f7eb2b09ef894287e450e3a76042980403af2e4eec3bd3b23866d2 libseccomp-2.4.2.tar.lz
"