blob: d8a7471a4db57d0f4d276d2544bb8d56f7495cc4 (
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
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 130904 2015-04-07 21:21:18Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=pari-git
_pkgname=pari
pkgver=20170321.b487f4d81
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' 'git')
optdepends=('perl: gphelp, tex2mail')
source=('git+http://pari.math.u-bordeaux.fr/git/pari.git')
sha256sums=('SKIP')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
build() {
cd "${srcdir}/${_pkgname}"
./Configure \
--prefix=/usr \
--with-readline \
--mt=pthread \
--with-gmp \
make all
}
check() {
cd "${srcdir}/${_pkgname}"
make bench
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1
}
|