updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / calf-git / PKGBUILD
blobb61f5dd61ea24c905605464c921db80798c57b2e
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Philipp Überbacher <murks at lavabit dot com>
4 _pkg=calf
5 pkgname=$_pkg-git
6 pkgver=20110802
7 pkgrel=1
8 pkgdesc="LV2/DSSI/JACK/LADSPA audio plug-ins for musicians"
9 arch=('i686' 'x86_64')
10 url="http://calf.sourceforge.net/"
11 license=('GPL')
12 depends=('fluidsynth' 'lash' 'gconf')
13 makedepends=('ladspa' 'dssi' 'lv2core' 'git')
14 provides=("$_pkg")
15 conflicts=("$_pkg")
16 options=('!libtool')
17 install="$pkgname.install"
19 _gitroot="git://repo.or.cz/$_pkg.git"
20 _gitname="$_pkg"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   ./autogen.sh --prefix="/usr" \
45                --enable-experimental \
46                --enable-debug
47   make DESTDIR="$pkgdir/"
50 package(){
51   cd "$srcdir/$_gitname-build"
53   make DESTDIR="$pkgdir/" install