updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / cgetvid-git / PKGBUILD
blob8a8685373e86aaf5cd83e62937c4b4d1763eb012
1 # Maintainer: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
3 pkgname=cgetvid-git
4 pkgver=20101021
5 pkgrel=1
6 pkgdesc="cgetvid is an easily extensible video downloader"
7 url="https://shadowice.org/?p=cgetvid"
8 arch=('x86_64' 'i686')
9 license=(GPL3)
10 depends=('qt')
11 makedepends=('cmake' 'git')
12 conflicts=('cgetvid')
13 source=()
14 md5sums=()
16 _gitroot="git://git.shadowice.org/cgetvid.git"
17 _gitname="cgetvid"
19 build() {
21 cd ${srcdir}
23 msg "Connecting to shadowice.org GIT server...."
25 if [ -d ${srcdir}/$_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
28 else
29 git clone $_gitroot
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 cd ${srcdir}
36 if [ -d ${srcdir}/$_gitname-build ] ; then
37 rm -rf $_gitname-build
40 cp -r $_gitname $_gitname-build
42 cd ${srcdir}/$_gitname-build
43 cmake . -DCMAKE_INSTALL_PREFIX=/usr/ || return 1
44 make || return 1
45 make DESTDIR=${pkgdir} install || return 1