updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / petri-foo-git / PKGBUILD
blob89b7d2a3b89a4532b9b9c97ccd71e68936969ada
1 # Contributor: Jiri Prochazka <ojirio@gmail.com> 
3 pkgname=petri-foo-git
4 pkgver=20110810
5 pkgrel=1
6 pkgdesc='audio midi sampler, based on Specimen, for JACK'
7 url="http://petri-foo.sourceforge.net/"
8 license=("GPL")
9 arch=('i686' 'x86_64')
10 install='petri-foo.install'
11 makedepends=('git')
12 depends=('jack' 'libgnomecanvas' 'desktop-file-utils')
14 _gitroot="git://github.com/jwm-art-net/Petri-Foo.git"
15 _gitname="Petri-Foo"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   # BUILD HERE
37   cmake -DCMAKE_INSTALL_PREFIX=/usr -DUpdateMime=OFF .
38   make
39   make DESTDIR=${pkgdir} install