updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / clam-networkeditor / PKGBUILD
blob791f143c77f0c4f610e7fbbd40d579a8cc3f71a1
1 # Maintainer: Santiago Piccinini <gringotumadre at gmail dot com>
3 pkgname=clam-networkeditor
4 pkgver=1.4.0
5 pkgrel=2
6 pkgdesc="tool for editing CLAM processing networks"
7 arch=('i686' 'x86_64')
8 url="http://clam-project.org"
9 license=('GPL')
10 depends=('clam>=1.4.0' 'qt' 'mesa')
11 makedepends=('gcc' 'scons')
12 optdepends=('aurvote: vote for favorite packages from AUR for inclusion in [community]')
13 source=(http://clam-project.org/download/src/NetworkEditor-${pkgver}.tar.gz
14         SConstruct.patch
15         gcc-4.5.patch)
16 md5sums=('79663504041b9f9ce21d0e382f23c6f9'
17          '36a462459488aba514507ac850dbd7f3'
18          '5a694372009aacdacb794a46e752f38c')
20 build() {
21   install -d $pkgdir/usr
22   cd $srcdir/NetworkEditor-$pkgver
23   patch -p0 < $startdir/SConstruct.patch || return 1
24   patch -p1 < $startdir/gcc-4.5.patch || return 1 
25   QTDIR=/usr/lib/qt scons install prefix=$pkgdir/usr \
26                     clam_prefix=/usr \
27                     qt_plugins_install_path=/usr/lib/qt/plugins/designer \
28                     release=1 verbose=1 || return 1
30   mv $pkgdir/usr/usr/lib/qt/ $pkgdir/usr/lib/
31   rmdir $pkgdir/usr/usr/lib $pkgdir/usr/usr