updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libsbml / PKGBUILD
blobb2415aef992f7f35db8ff5092c1ff9c77a03091c
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=libsbml
4 _pkgname=libSBML
5 pkgver=5.2.0
6 pkgrel=1
7 pkgdesc="XML-based description language for computational models in systems biology"
8 url="http://sbml.org/Software/libSBML"
9 license=('LGPL')
10 arch=('i686' 'x86_64')
11 depends=('gcc-libs' 'libxml2' 'python2' 'perl' 'ruby' 'java-runtime')
12 optdepends=('bzip2' 'octave' 'mono')
13 builddepends=('swig')
14 options=('!libtool')
15 md5sums=('23c7a891f988984948d9977b405c1da3')
16 source=("http://downloads.sourceforge.net/project/sbml/$pkgname/$pkgver/stable/$_pkgname-$pkgver-src.tar.gz")
18 build() {
19   mkdir -p "$srcdir/build" && cd "$srcdir/build"
21   cmake -DCMAKE_BUILD_TYPE=release -DWITH_PYTHON=1 -DWITH_JAVA=1 \
22     -DWITH_OCTAVE=0 -DWITH_CSHARP=0 -DWITH_PERL=1 -DWITH_RUBY=1 \
23     -DWITH_MATLAB=0 -DCMAKE_INSTALL_PREFIX=/usr "../$pkgname-$pkgver"
25   find . -name "build.make" | xargs sed -i "s:/usr/bin/python:/usr/bin/python2:"
26   make || return 1
29 package() {
30   cd "$srcdir/build"
31   make DESTDIR="$pkgdir" install