updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / singular / PKGBUILD
blob91ebd859773f21932272e4acd7523f3cb38f9d70
1 # Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>
2 # Maintainer: Rémy Oudompheng <oudomphe@clipper.ens.fr>
3 pkgname=singular
4 pkgver=3.1.1.1
5 _majver=3-1-1
6 pkgrel=2
7 pkgdesc="Computer Algebra System for polynomial computations"
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/src/$_majver/Singular-$_majver-1.tar.gz
14         fix-parallel-make.patch
15         fixes.patch)
16 md5sums=('648794a3961d6b9a080a0b43f03d61f4'
17          '82d25dda8ca3369474d0b755349a55a1'
18          '5fbe5f6c07b470594bb142bada090ece')
20 build() {
21   cd "$startdir/src/Singular-$_majver"
22   usrdir=$pkgdir/opt/singular
23   patch -p1 <../fix-parallel-make.patch || return 1
24   patch -p1 <../fixes.patch || return 1
26   export CFLAGS="$CFLAGS -fPIC"
27   export CXXFLAGS="$CXXFLAGS -fPIC"
29   cd "$startdir/src/Singular-$_majver"
30   ./configure --cache-file=config.cache --prefix=$usrdir \
31        --bindir=$usrdir/bin --libdir=$usrdir/lib \
32        --includedir=$usrdir/include \
33        --with-apint=gmp --with-gmp=/usr/lib \
34        --disable-doc \
35        --disable-NTL --with-NTL --without-MP || return 1
36   make install || return 1
37   make install-libsingular || return 1
39 md5sums=('648794a3961d6b9a080a0b43f03d61f4'
40          '43febd78f4753b0db578c24602d8e34b'
41          '5fbe5f6c07b470594bb142bada090ece')