wok annotate pari/receipt @ rev 24940

f2c: add libf2c (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:39:27 2022 +0000 (2022-04-15)
parents 5ba5534362b6
children e717a4953b0e
rev   line source
al@13723 1 # SliTaz package receipt.
al@13723 2
al@13723 3 PACKAGE="pari"
Hans-G?nter@23278 4 VERSION="2.11.3"
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"
al@13723 12 WGET_URL="http://pari.math.u-bordeaux.fr/pub/$PACKAGE/unix/$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"
al@13723 16 BUILD_DEPENDS="gmp-dev readline-dev 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@24453 21 wget -O - ${WGET_URL%/*}/ 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 {
al@13723 28 mkdir build
Hans-G?nter@21660 29 # this configure does not respect $CONFIGURE_ARGS :(
Hans-G?nter@21660 30 ./Configure \
Hans-G?nter@21660 31 --host=$ARCH \
Hans-G?nter@21660 32 --graphic=X11 \
Hans-G?nter@21660 33 --builddir=build \
Hans-G?nter@21660 34 --prefix=/usr &&
Hans-G?nter@23278 35 cd build &&
al@13723 36 make all &&
pascal@15314 37 make DESTDIR=$install install 2>&1 | sed \
pascal@15314 38 -e "s/dvi': No such/dvi': no such/" \
pascal@23598 39 -e "s/tex: No such/tex: no such/"
Hans-G?nter@23278 40
al@13723 41 rm -rf $src/build
al@13723 42 }
al@13723 43
al@13723 44 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13723 45 genpkg_rules()
al@13723 46 {
Hans-G?nter@21660 47 mkdir -p $fs/usr/lib/pari
Hans-G?nter@21660 48 mkdir -p $fs/usr/share
Hans-G?nter@21660 49
Hans-G?nter@21660 50 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21660 51 cp -a $install/usr/lib/pari $fs/usr/lib
Hans-G?nter@21660 52 cp -a $install/usr/share/pari $fs/usr/share
al@13723 53 }