Name libnftnl
Description Netfilter library providing interface to the nf_tables subsystem
Version 1.3.1-1
Package Base libnftnl
Homepage https://netfilter.org/projects/libnftnl/
Maintainers ['Christian Hesse <eworm@archlinux.org>', 'Sébastien Luttringer']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libnftnl
Sources ['git+https://git.netfilter.org/libnftnl.git#tag=libnftnl-1.3.1?signed']
Dependencies ['libmnl']
Optional-Dependencies []
Build-Dependencies ['git']
Provides []
Builddate 03-12-2025 17:59:44
Architecture x86_64
Distro-Version
Licenses ['GPL2']
Hash b5e01ab808719277bf77b14014ec2940edfba4d34ede5b3a9761c5274eb7d6cf
# Maintainer: Sébastien Luttringer

pkgname=libnftnl
pkgver=1.3.1
pkgrel=1
pkgdesc='Netfilter library providing interface to the nf_tables subsystem'
arch=('x86_64')
url='https://netfilter.org/projects/libnftnl/'
license=('GPL-2.0-or-later')
depends=('libmnl')
makedepends=('git')
validpgpkeys=('8C5F7146A1757A65E2422A94D70D1A666ACF2B21') # Netfilter Core Team
source=("git+https://git.netfilter.org/libnftnl.git#tag=${pkgname}-${pkgver}?signed")
sha256sums=('2a52dfe77129ff5997df5cbb2992b48d9d5e571dd72f59cfe8d18d359ff0939e')

prepare() {
  cd $pkgname
  autoreconf -fiv
}

build() {
  cd $pkgname
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname
  make check
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}