wok-6.x view giac/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents 7fab01d460ad
children b55f6ebcce61
line source
1 # SliTaz package receipt.
3 PACKAGE="giac"
4 VERSION="1.5.0.85"
5 CATEGORY="misc"
6 SHORT_DESC="A free computer algebra system."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
11 TARBALL="${PACKAGE}_${VERSION%.*}-${VERSION##*.}.tar.gz"
12 WGET_URL="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/$TARBALL"
14 DEPENDS="cocoalib fltk gf2x gmp gsl libpng mpfr ntl pari readline"
15 BUILD_DEPENDS="bison cocoalib expat-dev fltk-2.0.x-gl fltk-dev gf2x-dev
16 gfortran gmp-dev gsl-dev libboost-system-dev libpng-dev
17 libtool libxml2-dev mesa-dev mpfr-dev ntl pari-dev readline-dev
18 xorg-libX11-dev xorg-libXinerama-dev" # lapack
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's| doc | |' Makefile*
31 cp /usr/include/FL/Fl_PostScript.H /usr/include/FL/Fl_PostScript.H.ORG
32 cp /usr/include/FL/Fl_Input.H /usr/include/FL/Fl_Input.H.ORG
33 sed -i 's/protected:/public:/' \
34 /usr/include/FL/Fl_Input.H \
35 /usr/include/FL/Fl_PostScript.H
36 export LDFLAGS="$LDFLAGS -lgf2x -lboost_system"
38 ./configure $CONFIGURE_ARGS &&
39 make &&
40 make install
42 mv -f /usr/include/FL/Fl_PostScript.H.ORG /usr/include/FL/Fl_PostScript.H
43 mv -f /usr/include/FL/Fl_Input.H.ORG /usr/include/FL/Fl_Input.H
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 }