updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jalv-svn / PKGBUILD
blob931f2ab60eb28368c728f490d2179292bc87d3d2
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=jalv
4 pkgname=$_pkg-svn
5 pkgver=3882
6 pkgrel=1
7 pkgdesc="Run an LV2 plugin as a JACK application."
8 arch=(i686 x86_64)
9 url="http://drobilla.net/software/$_pkg/"
10 license=('custom:ISC')
11 depends=('lilv>=0.8.0' 'suil')
12 makedepends=('subversion' 'python2' 'lv2-event' 'lv2-atom'
13              'lv2-uri-map' 'lv2-state' 'lv2-ui-resize')
14 provides=("$_pkg")
15 conflicts=("$_pkg")
17 _svntrunk=http://svn.drobilla.net/lad/trunk/$_pkg
18 _svnmod=$_pkg
20 build() {
21   cd "$srcdir"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_svnmod-build"
33   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34   cd "$srcdir/$_svnmod-build"
36   #
37   # BUILD
38   #
40   LDFLAGS="-lpthread" \
41   python2 waf configure --prefix=/usr \
42                         --mandir=/usr/share/man
43   python2 waf
46 package() {
47   cd "$srcdir/$_svnmod-build"
49   DESTDIR="$pkgdir/" python2 waf install
51   # license
52   install -Dm644 COPYING \
53     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"