1 # Contributor: Christian Hesse <mail@earthworm.de>
6 pkgdesc="Library for minimalistic netlink - git checkout"
8 url="http://www.netfilter.org/projects/libmnl/"
15 _gitroot=git://git.netfilter.org/libmnl.git
20 msg "Connecting to git.netfilter.org GIT server..."
22 if [ -d ${srcdir}/$_gitname ]; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 if [ -d ${srcdir}/$_gitname-build ]; then
33 rm -rf ${srcdir}/$_gitname-build
36 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
37 cd ${srcdir}/$_gitname-build/ || return 1
40 ./configure --prefix=/usr
41 make DESTDIR="$pkgdir" install
44 # vim:set ts=2 sw=2 et: