updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / libnfnetlink-git / PKGBUILD
blobb763e49d62ad1866deef24c1cff00e267e69ff36
1 # Maintainer: Not me.
3 pkgname=libnfnetlink-git
4 pkgver=20111123
5 pkgrel=1
6 pkgdesc="low-level library for netfilter related kernel/userspace communication"
7 url="http://www.netfilter.org/projects/libnfnetlink/index.html"
8 license=('GPL2')
9 depends=('glibc')
10 options=('!libtool')
11 makedepends=('git')
12 provides=('libnfnetlink')
13 conflicts=('libnfnetlink')
14 arch=('i686' 'x86_64')
16 _gitroot="git://git.netfilter.org/libnfnetlink.git"
17 _gitname="libnfnetlink.git"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./autogen.sh
38   ./configure --prefix=/usr --disable-static --enable-shared
39   make V=1
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir/" install
45