1 # Maintainer: Alexei Babich <impatt@mail.ru>
6 pkgdesc="Dibbler, a portable DHCPv6 - git checkout"
8 url="http://klub.com.pl/dhcpv6/"
10 makedepends=('git gcc binutils gawk grep coreutils')
11 provides=(dibbler-git)
14 _gitroot="git://github.com/tomaszmrugalski/dibbler.git"
16 _cpus=`cat /proc/cpuinfo | grep -c flags`
19 msg "Connecting to GIT server...."
21 if [ -d ${_gitname} ] ; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
25 git clone ${_gitroot} ${_gitname}
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"
34 ./configure --prefix=/usr
35 nice -n 1 make -j ${_cpus} || return 1
36 make DESTDIR="${pkgdir}/" install