VERSION="0.8.4" SRCDIR="nftables-${VERSION}" TARBALL="${SRCDIR}.tar.bz2" URL="https://netfilter.org/projects/nftables/files" SHA256SUM="ef372ee4592b07852f4cac233584ead7cbd08fa3041b2d3ff3d3590c8d76769f" DEPENDS="libmnl libnftnl gmp readline ncurses" prepare() { return } build() { $1/configure --prefix="" --host="$TARGET" --sbindir=/bin \ --disable-debug --disable-man-doc --without-mini-gmp make -j $NUMJOBS } deploy() { local SOURCE="$1" local DEPLOY="$2" local DEVDEPLOY="$3" make DESTDIR="$DEPLOY" install-strip } check_update() { curl --silent -L "$URL" | grep -o ">nftables-[0-9.]*tar.bz2<" | \ sed 's/>nftables-//g' | sed 's/.tar.bz2