summaryrefslogtreecommitdiff
path: root/community/pari/PKGBUILD
blob: 13653dcd430ab1d05f48c1319a7a7d5a02bbdf8a (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
# $Id: PKGBUILD 77048 2012-10-03 23:34:04Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=pari
pkgver=2.5.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' 'mips64el')
depends=('gmp' 'readline' 'libx11')
makedepends=('perl' 'texlive-core')
optdepends=('perl: gphelp, tex2mail')
source=("${url}pub/pari/unix/${pkgname}-${pkgver}.tar.gz")
sha1sums=('de79eee7ae017a495dc0c648b6f7d5a4f6c7a522')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	sed 's/\$addlib64/ /' -i config/get_libpth
	./Configure --prefix=/usr --with-gmp --with-readline
	make all
}

check() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make bench
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install

	# symlink pointing to a symlink that is going to be moved by zipman
	rm "${pkgdir}"/usr/share/man/man1/pari.1
	ln -s gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1.gz
}