summaryrefslogtreecommitdiff
path: root/community/pari
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/pari
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/pari')
-rw-r--r--community/pari/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/pari/PKGBUILD b/community/pari/PKGBUILD
new file mode 100644
index 000000000..c9b018932
--- /dev/null
+++ b/community/pari/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 90928 2013-05-15 13:56:58Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+
+pkgname=pari
+pkgver=2.5.4
+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=("${url}pub/pari/unix/${pkgname}-${pkgver}.tar.gz"{,.asc})
+sha1sums=('471226fd86fea0ad1f236249a49bdaee16aa34bf' 'SKIP')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed 's/\$addlib64//g' -i config/get_libpth
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./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
+ ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1
+}