summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e6fdf115f2e628836164e96b74e2523958d12a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: a821 mail de
# Contributor: Máté Eckl <ecklm94@gmail.com>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=libnftnl-git
pkgver=1.2.2.r1.g84d12cf
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')
makedepends=('git')
provides=(libnftnl)
conflicts=(libnftnl)
source=(git://git.netfilter.org/libnftnl)
sha1sums=('SKIP')

pkgver() {
  cd libnftnl
  git describe | sed 's/^libnftnl-//; s/-/.r/; s/-/./'
}

build() {
  cd libnftnl
  sh autogen.sh
  ./configure --prefix=/usr
  make
}

check() {
  cd libnftnl
  make check
}

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

# vim: set ts=2 sw=2 et: