### this file is sourced not run
PKGVER=2.9.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=pari-$PKGVER.tar.gz
MD5SUM=f997d6b526df6cd9145af0de5b822bf4
SRC_URL=http://pari.math.u-bordeaux.fr/pub/pari/unix/$TARBALL
BUNDLE=

SLACKREQ='libgmp libreadline'
SLACKDESC="libpari: libpari $PKGVER (Computer algebra system library)
libpari: 
libpari: PARI/GP is a widely used computer algebra system designed for fast 
libpari: computations in number theory (factorizations, algebraic number 
libpari: theory, elliptic curves...), but also contains a large number of 
libpari: other useful functions to compute with mathematical entities such as 
libpari: matrices, polynomials, power series, algebraic numbers etc., and a 
libpari: lot of transcendental functions. PARI is also available as a C 
libpari: library to allow for faster computations.
libpari: 
libpari: http://pari.math.u-bordeaux.fr/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/pari*
	./Configure \
		--prefix=/usr \
		--libdir=/usr/$LIBDIR \
		--sysdatadir=/usr/$LIBDIR/pari \
		--with-readline &&
	make $MAKEFLAGS gp && make install &&
	install -m644 misc/gprc.dft /etc &&
	
	pkg_build_slackdesc
}


