updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / pirateplayer-git / PKGBUILD
blob39d040c17c244bff6baa967bfdfd91af7f27e442
1 # created 14:21:01 - 12/10/10
2 # Maintainer: jackuess <chucky at wrutschkow.org> 
4 pkgname=pirateplayer-git
5 pkgver=20111012
6 pkgrel=1
7 pkgdesc="Qt-based utility for downloading (and in the future watching) swedish programming"
8 url="http://pirateplay.se/"
9 license="GPL"
10 arch=('i686' 'x86_64')
11 depends=('qt' 'rtmpdump')
12 makedepends=('git')
13 conflicts=('pirateplayer')
14 provides=('pirateplayer')
16 _gitroot='git://github.com/jackuess/pirateplayer.git'
17 _gitname='pirateplayer'
19 build() {
20     cd ${srcdir}
21   
22       msg "Connecting to github.com GIT server...."
23   if [ -d $srcdir/$_gitname ] ; then
24       cd $_gitname && git pull origin
25       msg "The local files are updated."
26   else
27       git clone $_gitroot
28   fi
29       msg "GIT checkout done or server timeout"
30       
31       msg "Starting make..."
32   
33   if [ -d ${srcdir}/$_gitname-build ]; then
34       rm -r ${srcdir}/$_gitname-build
35   fi
36     cp -r $srcdir/$_gitname $srcdir/$_gitname-build
37     cd $srcdir/$_gitname-build
39     qmake PREFIX=/usr || return 1
40     make INSTALL_ROOT=${pkgdir} install || return 1