archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libnftnl / trunk / PKGBUILD
blob3703ff1d03708eb62f898ccea25542197e6b2fa6
1 # Maintainer: Sébastien Luttringer
3 pkgname=libnftnl
4 pkgver=1.2.5
5 pkgrel=1
6 pkgdesc='Netfilter library providing interface to the nf_tables subsystem'
7 arch=('x86_64')
8 url='https://netfilter.org/projects/libnftnl/'
9 license=('GPL2')
10 depends=('libmnl')
11 validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
12 source=("https://netfilter.org/projects/libnftnl/files/libnftnl-$pkgver.tar.xz"{,.sig})
13 sha256sums=('966de0a8120c8a53db859889749368bfb2cba0c4f0b4c1a30d264eccc45f1226'
14             'SKIP')
16 prepare() {
17   cd $pkgname-$pkgver
18   # apply patch from the source array (should be a pacman feature)
19   local src
20   for src in "${source[@]}"; do
21     src="${src%%::*}"
22     src="${src##*/}"
23     [[ $src = *.patch ]] || continue
24     msg2 "Applying patch $src..."
25     patch -Np1 < "../$src"
26   done
29 build() {
30   cd $pkgname-$pkgver
31   ./configure --prefix=/usr
32   make
35 check() {
36   cd $pkgname-$pkgver
37   make check
40 package() {
41   cd $pkgname-$pkgver
42   make DESTDIR="$pkgdir" install
45 # vim:set ts=2 sw=2 et: