summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a5a3afc60cc2904021a081216c3700dddd5ceb5 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libnetfilter_acct-git
pkgver=1.0.3.r0.gf9529e2
pkgrel=1
pkgdesc="Userspace library providing interface to extended accounting infrastructure"
arch=('i686' 'x86_64')
url="https://netfilter.org/projects/libnetfilter_acct/index.html"
license=('LGPL')
depends=('glibc' 'libmnl')
makedepends=('git')
provides=('libnetfilter_acct')
conflicts=('libnetfilter_acct')
source=("git://git.netfilter.org/libnetfilter_acct")
sha256sums=('SKIP')


pkgver() {
  cd "libnetfilter_acct"

  git describe --long --tags | sed 's/^libnetfilter_acct-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libnetfilter_acct"

  autoreconf -fi
  ./configure --prefix="/usr"
  make
}

package() {
  cd "libnetfilter_acct"

  make DESTDIR="$pkgdir" install
}