updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / ladish-git / PKGBUILD
blob4fef87d38eabff8faeecfc3c64e936b51e8e7639
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _p=ladish
4 pkgname=$_p-git
5 pkgver=20110801
6 pkgrel=1
7 pkgdesc="A session management system for JACK applications on GNU/Linux."
8 arch=(i686 x86_64)
9 url="http://ladish.org/"
10 license=('GPL')
11 depends=('jackdbus' 'dbus-glib' 'laditools-git' 'flowcanvas<=0.7.1' 'a2jmidid')
12 makedepends=('git' 'python2')
13 provides=("$_p=0.4" 'lash')
14 conflicts=("$_p" 'lash')
15 install="$pkgname.install"
17 _gitroot="git://repo.or.cz/$_p.git"
18 _gitname="$_p"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
42   # python2 fix
43   export PYTHON=/usr/bin/python2
44   sed -i "s|env python|&2|" ${_p}_control
46   # build release
47   sed -i "s|\(RELEASE = \).*|\1True|" wscript
49   python2 waf configure --prefix=/usr \
50                         --enable-liblash \
51                         --enable-pylash
52   python2 waf
55 package() {
56   cd "$srcdir/$_gitname-build"
58   python2 waf install --destdir="$pkgdir/"
59