name=nftables
version=1.1.5
release=1
desc="The Linux packet filter"
url="https://netfilter.org/projects/nftables/"
license="GPL-2.0-only"
depend="glibc libmnl libnftnl gmp-alt libedit"
makedepend=""
source="https://netfilter.org/projects/nftables/files/nftables-1.1.5.tar.xz"
sha256="SKIP"

build() {
	cd "nftables-1.1.5"
	_opts="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib"
	_help=$(./configure --help 2>/dev/null)
	case "$_help" in *--disable-static*)  _opts="$_opts --disable-static" ;; esac
	case "$_help" in *--disable-nls*)     _opts="$_opts --disable-nls" ;; esac
	_opts="$_opts --with-cli=no"
	./configure $_opts
	make -j"$JOBS"
}

package() {
	cd "nftables-1.1.5"
	make DESTDIR="$pkgdir" install
}
