VERSION="0.9.1" SRCDIR="nftables-${VERSION}" TARBALL="${SRCDIR}.tar.bz2" URL="https://netfilter.org/projects/nftables/files" SHA256SUM="ead3bb68ed540bfbb87a96f2b69c3d65ab0c2a0c3f6e739a395c09377d1b4fce" DEPENDS="libmnl-dev libnftnl-dev gmp-dev readline-dev ncurses-dev toolchain" SUBPKG="nftables nftables-dev" prepare() { return } build() { run_configure "$1" --disable-debug --disable-man-doc --without-mini-gmp make -j $NUMJOBS } deploy() { make DESTDIR="$PKGDEPLOYDIR" install cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR" } check_update() { curl --silent -L "$URL" | grep -o ">nftables-[0-9.]*tar.bz2<" | \ sed 's/>nftables-//g' | sed 's/.tar.bz2