wok-6.x view pari/receipt @ rev 25492
Up foomatic-db (4.0-20221117)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 18 09:54:27 2022 +0000 (21 months ago) |
parents | 232ba43d30af |
children | 3f7980d355a5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pari"
4 VERSION="2.13.4"
5 CATEGORY="utilities"
6 SHORT_DESC="Computer algebra system designed for fast computations in number theory."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://pari.math.u-bordeaux.fr/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}pub/$PACKAGE/unix/$TARBALL"
14 DEPENDS="glibc-base gmp libxcb ncurses readline xorg-libX11 xorg-libXau \
15 xorg-libXdmcp"
16 BUILD_DEPENDS="bash gmp-dev readline-dev texinfo xorg-libX11-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WEB_SITE}pub/$PACKAGE/unix/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ln -s /bin/bash /bin/sh
29 mkdir build
30 # this configure does not respect $CONFIGURE_ARGS :(
31 ./Configure \
32 --host=$ARCH \
33 --graphic=X11 \
34 --builddir=build \
35 --prefix=/usr &&
36 sed -i 's|TEX = tex|TEX = texi2pdf|' doc/Makefile
37 cd build
38 bash -c make all
39 make DESTDIR=$install install 2>&1 | \
40 sed -e "s/dvi': No such/dvi': no such/" \
41 -e "s/ps': No such/ps': no such/"
43 rm -rf $src/build
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib/pari
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/pari $fs/usr/lib
54 cp -a $install/usr/share/pari $fs/usr/share
55 }