1 # Maintainer: David Watzke <david@watzke.cz>
3 pkgname=uloz-to-client-git
6 pkgdesc="a Qt 4 client for uloz-to-daemon"
7 url="http://gitorious.org/uloz-to"
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"
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."
26 cd "$srcdir/$_gitname"
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"
41 cd "$srcdir/$_gitname-build"
43 install -D -m 0755 $_gitname "$pkgdir/usr/bin/$_gitname"