diff --git a/PKGBUILD b/PKGBUILD index 4c1682b..89e6c98 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -10,7 +10,7 @@ url='https://netfilter.org/projects/nftables/' license=('GPL2') depends=('libmnl' 'libnftnl' 'gmp' 'readline' 'ncurses' 'jansson') optdepends=('python: Python bindings') -makedepends=('asciidoc' 'python' 'python-setuptools') +makedepends=('asciidoc' 'python' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel') backup=('etc/nftables.conf') validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team source=("https://netfilter.org/projects/nftables/files/nftables-$pkgver.tar.xz"{,.sig} @@ -45,13 +45,17 @@ build() { --sysconfdir=/usr/share \ --with-json \ --with-cli=readline \ - --disable-debug + --disable-debug \ + --disable-python make + cd py + python -m build --wheel --no-isolation } package() { pushd $pkgname-$pkgver make DESTDIR="$pkgdir" install + python -m installer --destdir="$pkgdir" py/dist/*.whl popd # basic safe firewall config install -Dm644 nftables.conf "$pkgdir/etc/nftables.conf"