mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 03:34:38 +08:00
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
|
# $Id$
|
|||
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|||
|
|
|||
|
pkgname=pari
|
|||
|
pkgver=2.7.3
|
|||
|
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"
|
|||
|
'err_handle.patch')
|
|||
|
sha1sums=('fa01d548839301958564a2bec39928ba3c9c9d39'
|
|||
|
'182066ab765eddb0b7fd98b441c158304545f5ec')
|
|||
|
|
|||
|
prepare() {
|
|||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|||
|
sed 's/\$addlib64//g' -i config/get_libpth
|
|||
|
patch -p1 -i ../err_handle.patch # sage-5.6 uses this¸ from upstream trunk
|
|||
|
}
|
|||
|
|
|||
|
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
|
|||
|
}
|