diff options
author | Chocobo1 | 2018-05-04 06:38:27 +0800 |
---|---|---|
committer | Chocobo1 | 2018-05-04 06:42:23 +0800 |
commit | cca0b64dcb6952e62fa657b770fc01de6f7898b5 (patch) | |
tree | 4fc47b6447924cca304d5ce3c7eb9e131a620f27 | |
download | aur-cca0b64dcb6952e62fa657b770fc01de6f7898b5.tar.gz |
newpkg: libnetfilter_cttimeout-git 1.0.0.r5.gd0c4e39-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..97a2b6950458 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = libnetfilter_cttimeout-git + pkgdesc = Library that provides access to the connection tracking timeout infrastructure + pkgver = 1.0.0.r5.gd0c4e39 + pkgrel = 1 + url = https://netfilter.org/projects/libnetfilter_cttimeout/index.html + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = libmnl + provides = libnetfilter_cttimeout + conflicts = libnetfilter_cttimeout + source = git://git.netfilter.org/libnetfilter_cttimeout + sha256sums = SKIP + +pkgname = libnetfilter_cttimeout-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cb33338aa0e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=libnetfilter_cttimeout-git +pkgver=1.0.0.r5.gd0c4e39 +pkgrel=1 +pkgdesc="Library that provides access to the connection tracking timeout infrastructure" +arch=('i686' 'x86_64') +url="https://netfilter.org/projects/libnetfilter_cttimeout/index.html" +license=('GPL') +depends=('libmnl') +makedepends=('git') +provides=('libnetfilter_cttimeout') +conflicts=('libnetfilter_cttimeout') +source=("git://git.netfilter.org/libnetfilter_cttimeout") +sha256sums=('SKIP') + + +pkgver() { + cd "libnetfilter_cttimeout" + + git describe --long --tags | sed 's/^libnetfilter_cttimeout-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "libnetfilter_cttimeout" + + autoreconf -fi + ./configure --prefix="/usr" + make +} + +package() { + cd "libnetfilter_cttimeout" + + make DESTDIR="$pkgdir" install +} |