1 # Maintainer: Jakob 'flocke' Nixdorf <flocke [swirly thing] user-helfen-usern [dot] de>
6 pkgdesc="Library to download files single or multithreaded"
7 url="https://www.uhuc.de/index.php?topic=314.0;all"
11 makedepends=('cmake' 'git')
15 _gitroot="git://gitorious.org/cgetvid/c_download.git"
22 msg "Connecting to gitorious.org GIT server...."
24 if [ -d ${srcdir}/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
35 if [ -d ${srcdir}/$_gitname-build ] ; then
36 rm -rf $_gitname-build
39 cp -r $_gitname $_gitname-build
41 cd ${srcdir}/$_gitname-build
42 cmake . -DCMAKE_INSTALL_PREFIX=/usr/ || return 1
44 make DESTDIR=${pkgdir} install || return 1