smlinux/base/libnfnetlink/libnfnetlink.SMBuild

36 lines
897 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libnfnetlink
version=1.0.1
build=1sml
homepage="https://www.netfilter.org/projects/libnfnetlink/index.html"
desc="Library for netfilter kernel/userspace communications"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/musl-fix-includes.patch
}
build() {
./configure \
--prefix=/usr \
--disable-static
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
04507f1340a93c408865d8c60826a3117fb57fa38459081d202d40b4b9f093b79365c05cc9c3b90dce20239d6ba819b110b42bf2a91b4da4bc65d701ed3812bd libnfnetlink-1.0.1.tar.lz
fc452e2924fa4de66e104229bc05a663c253148fb1c0bd62e5454a907877ffb084ba6a04e38bf4ef71a4e58041f4a242001a8029aefbe97ccc00e3bfcb7bba41 musl-fix-includes.patch
"