updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / libnetfilter_log-git / PKGBUILD
blob407e5ad4442681ee2360ea5d7e2259583ba83dc9
1 pkgname=libnetfilter_log-git
2 pkgver=20111227
3 pkgrel=1
4 pkgdesc="Netfilter logging userspace library"
5 url="http://netfilter.org"
6 license=('GPL2')
7 depends=('libnfnetlink')
8 makedepends=('git')
9 provides=('libnetfilter_log')
10 conflicts=('libnetfilter_log')
11 arch=('i686' 'x86_64')
12 options=('!libtool')
14 _gitroot="git://git.netfilter.org/libnetfilter_log.git"
15 _gitname="libnetfilter_log.git"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   ./autogen.sh
36   ./configure --prefix=/usr \
37           --disable-static --enable-shared --disable-rpath --with-pic
38   make V=1
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir" install
44