summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12018-05-04 06:10:59 +0800
committerChocobo12018-05-04 06:15:40 +0800
commitba285bf90101bbd500a04fefe6cea9b63ee3be8a (patch)
tree196858f3c627338fc8c0c15696aa1d5d6317d4e9 /PKGBUILD
downloadaur-libnetfilter_acct-git.tar.gz
newpkg: libnetfilter_acct-git 1.0.3.r0.gf9529e2-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a5a3afc60c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}