updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ganv-svn / PKGBUILD
blob292c20ed4ce59d86a389cd17564db0df07298433
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=ganv
4 pkgname=$_pkg-svn
5 pkgver=3876
6 pkgrel=1
7 pkgdesc="An interactive Gtkmm canvas widget for graph-based interfaces"
8 arch=(i686 x86_64)
9 url="http://drobilla.net/software/$_pkg/"
10 license=('GPL3')
11 depends=('gtkmm' 'graphviz')
12 makedepends=('subversion' 'python2')
13 provides=("$_pkg=1.2.0")
14 conflicts=("$_pkg")
16 _svntrunk=http://svn.drobilla.net/lad/trunk/$_pkg
17 _svnmod=$_pkg
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_svnmod-build"
32   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build"
35   #
36   # BUILD
37   #
39   # remove ldconfig
40   sed -i '/ldconfig/d' wscript
42   python2 waf configure --prefix=/usr
43 #                        --gir
44   python2 waf
47 package() {
48   cd "$srcdir/$_svnmod-build"
50   DESTDIR="$pkgdir/" python2 waf install