updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / singular-factory / PKGBUILD
blob2d7e3dc6245b908443bfdcdf88a626b47104c17e
1 # Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>
2 # Maintainer: Rémy Oudompheng <oudomphe@clipper.ens.fr>
3 pkgname=singular-factory
4 pkgver=3.1.1
5 _majver=3-1-1
6 pkgrel=1
7 pkgdesc="Computer Algebra System for polynomial computations: factory and libfac"
8 arch=('i686' 'x86_64')
9 url="http://www.singular.uni-kl.de/"
10 license=('GPL')
11 depends=('gmp' 'ncurses' 'readline' 'ntl')
12 options=('!strip')
13 source=(http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/Factory/factory-$_majver.tar.gz
14         http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/Libfac/libfac-$_majver.tar.gz
15         fix-parallel-make.patch)
16 md5sums=('3e4f05a1cb6e8ccdd02bc065e50eafbc'
17          '781c77602eb27b9c8261e9851c375e32'
18          'f08b818f3bc87b2be11761835ff236d9')
20 build() {
21   cd "$srcdir"
22   usrdir=$pkgdir/usr
23   patch -p0 -i $srcdir/fix-parallel-make.patch
25   export CFLAGS="$CFLAGS -fPIC"
26   export CXXFLAGS="$CXXFLAGS -fPIC"
27   export CONFIGURE_FLAGS="--prefix=$usrdir --exec_prefix=$usrdir \
28        --bindir=$usrdir/bin --libdir=$usrdir/lib/singular \
29        --includedir=$usrdir/include/singular"
31   # Build Factory
32   cd "$startdir/src/factory"
33   ./configure $CONFIGURE_FLAGS \
34       --with-NTL --with-gmp=/usr/lib \
35       --without-Singular --without-omalloc
36   make install
38   ./configure $CONFIGURE_FLAGS \
39       --without-debug --without-Singular
40   make install