# $Id: PKGBUILD 108200 2014-03-24 16:32:34Z bisson $ # Maintainer: Gaetan Bisson pkgname=pari pkgver=2.7.0 pkgrel=1 pkgdesc='Computer algebra system designed for fast computations in number theory' url='http://pari.math.u-bordeaux.fr/' license=('GPL') arch=('i686' 'x86_64') depends=('gmp' 'readline' 'libx11') makedepends=('perl' 'texlive-core') optdepends=('perl: gphelp, tex2mail') source=("http://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${pkgver}.tar.gz"{,.asc}) sha1sums=('ea3764bc0bac37d033e1109087bacba4c94b4c7d' 'SKIP') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed 's/\$addlib64//g' -i config/get_libpth } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./Configure \ --prefix=/usr \ --with-readline \ --mt=pthread \ --with-gmp \ make all } check() { cd "${srcdir}/${pkgname}-${pkgver}" make bench } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1 }