6 pkgdesc="Manage Linux IP sets"
7 url="http://ipset.netfilter.org/"
14 arch=('i686' 'x86_64')
16 _gitroot="git://git.netfilter.org/ipset.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
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"
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
46 cd "$srcdir/$_gitname-build"
47 make DESTDIR="$pkgdir" install