updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / ipset-git / PKGBUILD
blobfa4ebcac02f15db3694b8d29a3db233ac57bd1a0
1 # Maintainer: Not me.
3 pkgname=ipset-git
4 pkgver=20111123
5 pkgrel=1
6 pkgdesc="Manage Linux IP sets"
7 url="http://ipset.netfilter.org/"
8 license=('GPL2')
9 depends=('libmnl')
10 makedepends=('git')
11 provides=('ipset')
12 conflicts=('ipset')
13 options=('!libtool')
14 arch=('i686' 'x86_64')
16 _gitroot="git://git.netfilter.org/ipset.git"
17 _gitname="ipset.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 --with-pic --disable-debug --disable-static --enable-shared --with-kmod=no
39   # Prevent libtool from defining rpath
40   sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
41   sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
42   make V=1
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="$pkgdir" install
48