archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libnftnl / trunk / PKGBUILD
bloba95b761fcff9023db77a9138dbbacad08457e6cd
1 # Maintainer: Sébastien Luttringer
3 pkgname=libnftnl
4 pkgver=1.2.4
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.bz2"{,.sig})
13 sha256sums=('c0fe233be4cdfd703e7d5977ef8eb63fcbf1d0052b6044e1b23d47ca3562477f'
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: