updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / uloz-to-client-git / PKGBUILD
blob6a7f0ed5cff71ac0a58ec7fc97e6de2685399f33
1 # Maintainer: David Watzke <david@watzke.cz>
2  
3 pkgname=uloz-to-client-git
4 pkgver=20101013
5 pkgrel=2
6 pkgdesc="a Qt 4 client for uloz-to-daemon"
7 url="http://gitorious.org/uloz-to"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('qt>=4.6.0' 'uloz-to-daemon-git')
11 makedepends=('cmake' 'git')
12 provides=('uloz-to-client')
14 _gitname="uloz-to-client"
15 _gitroot="git://gitorious.org/uloz-to/$_gitname.git"
17 build() {
18         cd "$srcdir"
19         msg "Connecting to the GIT server...."
21         if [ -d "$srcdir/$_gitname" ] ; then
22                 cd $_gitname && git pull origin
23                 msg "The local files are updated."
24         else
25                 git clone $_gitroot
26                 cd "$srcdir/$_gitname"
27         fi
29         msg "Either the GIT checkout is done or the server timed out"
30         msg "Starting make..."
32         rm -rf "$srcdir/$_gitname-build"
33         cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34         cd "$srcdir/$_gitname-build"
36         cmake .
37         make
40 package() {
41         cd "$srcdir/$_gitname-build"
43         install -D -m 0755 $_gitname "$pkgdir/usr/bin/$_gitname"