summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7a53c4cc698b3a70409f2414176a2f3ba3332d5 (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
# Maintainer: Máté Eckl <ecklm94@gmail.com>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=libnftnl-git
pkgver=1.1.5
pkgrel=1
pkgdesc='Netfilter nf_tables infrastructure library that provides low level API for nftables to transform netlink messages to objects.'
arch=(i686 x86_64)
url='https://netfilter.org/projects/libnftnl/'
license=(GPL2)
depends=(libmnl)
makedepends=(git make gcc autoconf)
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
}