wok view pari/receipt @ rev 24715
updated lfs-book (8.4 -> 11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 06:57:03 2022 +0100 (2022-03-15) |
parents | 5ba5534362b6 |
children | e717a4953b0e |
line source
1 # SliTaz package receipt.
3 PACKAGE="pari"
4 VERSION="2.11.3"
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="http://pari.math.u-bordeaux.fr/pub/$PACKAGE/unix/$TARBALL"
14 DEPENDS="glibc-base gmp libxcb ncurses readline xorg-libX11 xorg-libXau \
15 xorg-libXdmcp"
16 BUILD_DEPENDS="gmp-dev readline-dev xorg-libX11-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 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 mkdir build
29 # this configure does not respect $CONFIGURE_ARGS :(
30 ./Configure \
31 --host=$ARCH \
32 --graphic=X11 \
33 --builddir=build \
34 --prefix=/usr &&
35 cd build &&
36 make all &&
37 make DESTDIR=$install install 2>&1 | sed \
38 -e "s/dvi': No such/dvi': no such/" \
39 -e "s/tex: No such/tex: no such/"
41 rm -rf $src/build
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib/pari
48 mkdir -p $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib/pari $fs/usr/lib
52 cp -a $install/usr/share/pari $fs/usr/share
53 }