blob: e917e48a3294bb6557b02ca8d6e12fc5e361216f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
pkgname=libsbml
pkgver=5.20.4
pkgrel=1
pkgdesc="XML-based description language for computational models in systems biology"
url="https://github.com/sbmlteam/libsbml"
license=('LGPL')
arch=('i686' 'x86_64')
depends=('libxml2')
optdepends=('bzip2' 'python' 'perl' 'ruby' 'java-runtime') # 'octave' 'mono'
makedepends=('cmake' 'swig' 'python' 'perl' 'ruby' 'java-environment') # 'octave', 'mono'
options=('!libtool')
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
sha256sums=('02c225d3513e1f5d6e3c0168456f568e67f006eddaab82f09b4bdf0d53d2050e')
build() {
cd "$srcdir"/$pkgname-$pkgver
./autogen.sh
mkdir -p "$srcdir"/build-$pkgver && cd "$srcdir"/build-$pkgver
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
-DWITH_LIBXML=ON \
-DWITH_EXPAT=OFF \
-DWITH_BZIP2=ON \
-DWITH_ZLIB=ON \
-DWITH_PYTHON=ON \
-DENABLE_LAYOUT=ON \
-DENABLE_RENDER=ON \
-DENABLE_QUAL=ON \
-DENABLE_MULTI=ON \
-DENABLE_COMP=ON \
-DENABLE_FBC=ON \
-DENABLE_GROUPS=ON
make
}
package() {
cd "$srcdir"/build-$pkgver
DESTDIR="$pkgdir" cmake -DCMAKE_INSTALL_PREFIX=/usr -P cmake_install.cmake
rm "$pkgdir"/usr/share/cmake/Modules/Find{ZLIB,LIBXML,BZ2}.cmake
}
|