wok annotate pari/receipt @ rev 25495

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