updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / c_download-git / PKGBUILD
blob0b738186f18fceea098e9f2127a7aec85f891389
1 # Maintainer: Jakob 'flocke' Nixdorf <flocke [swirly thing] user-helfen-usern [dot] de>
3 pkgname=c_download-git
4 pkgver=20100102
5 pkgrel=1
6 pkgdesc="Library to download files single or multithreaded"
7 url="https://www.uhuc.de/index.php?topic=314.0;all"
8 arch=('i686' 'x86_64')
9 license=(GPL3)
10 depends=('curl')
11 makedepends=('cmake' 'git')
12 source=()
13 md5sums=()
15 _gitroot="git://gitorious.org/cgetvid/c_download.git"
16 _gitname="c_download"
18 build() {
20 cd ${srcdir}
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."
27 else
28 git clone $_gitroot
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 cd ${srcdir}
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
43 make || return 1
44 make DESTDIR=${pkgdir} install || return 1