updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / performous-git / PKGBUILD
blob4092c316ad6905b86973277b898c1d231d3a8424
1 # Contributor: dawn <crackofdusk at gmail ... com>
2 pkgname=performous-git
3 pkgver=20100821
4 pkgrel=2
5 pkgdesc="Karaoke game"
6 arch=('i686' 'x86_64')
7 url="http://performous.org"
8 license=('GPL')
9 depends=('boost' 'sdl' 'ffmpeg' 'cairo>=1.2' 'librsvg' 'glew' 'libxml++' 'portaudio' 'imagemagick')
10 optdepends=('portmidi: for MIDI drum support' 'opencv: for webcam support')
11 makedepends=('cmake>=2.4' 'git' 'help2man')
12 provides=(performous)
13 conflicts=(performous)
14 md5sums=()
17 _gitroot="git://git.performous.org/gitroot/performous/performous"
18 _gitname="performous"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to 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
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34 #  rm -r "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname" "$startdir/src/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   
39   cmake -DCMAKE_INSTALL_PREFIX=/usr ${srcdir}/${_gitname} || return 1
40   make || return 1
41   make DESTDIR="$pkgdir/" install