45 lines
1 KiB
Text
45 lines
1 KiB
Text
# Maintainer: Sébastien Luttringer
|
|
|
|
pkgname=libnftnl
|
|
pkgver=1.2.7
|
|
pkgrel=1
|
|
pkgdesc='Netfilter library providing interface to the nf_tables subsystem'
|
|
arch=('x86_64')
|
|
url='https://netfilter.org/projects/libnftnl/'
|
|
license=('GPL2')
|
|
depends=('libmnl')
|
|
validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
|
|
source=("https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.xz"{,.sig})
|
|
sha256sums=('9122774f968093d5c0bacddd67de480f31fa4073405a7fc058a34b0f387aecb3'
|
|
'SKIP')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
# apply patch from the source array (should be a pacman feature)
|
|
local src
|
|
for src in "${source[@]}"; do
|
|
src="${src%%::*}"
|
|
src="${src##*/}"
|
|
[[ $src = *.patch ]] || continue
|
|
msg2 "Applying patch $src..."
|
|
patch -Np1 < "../$src"
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|