wok annotate xmgrace/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 535c806240cc |
children |
rev | line source |
---|---|
llev@18669 | 1 # SliTaz package receipt. |
llev@18669 | 2 |
llev@18669 | 3 PACKAGE="xmgrace" |
llev@18669 | 4 VERSION="5.1.25" |
llev@18669 | 5 CATEGORY="math" |
llev@18669 | 6 SHORT_DESC="Grace is a WYSIWYG 2D plotting tool." |
llev@18669 | 7 MAINTAINER="Lucas Levrel <llev@slitaz.org>" |
llev@18669 | 8 LICENSE="GPL2" |
llev@18669 | 9 SOURCE="grace" |
pascal@23702 | 10 WEB_SITE="https://plasma-gate.weizmann.ac.il/Grace/" |
llev@18669 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@25442 | 12 WGET_URL="https://plasma-gate.weizmann.ac.il/pub/grace/src/grace${VERSION%%.*}/$TARBALL" |
llev@18669 | 13 |
llev@18669 | 14 DEPENDS="libjpeg libpng fftw lesstif" |
llev@18669 | 15 BUILD_DEPENDS="jpeg-dev libpng-dev fftw-dev lesstif-dev xorg-printproto bison" |
llev@18669 | 16 |
pascal@24465 | 17 # What is the latest version available today? |
pascal@24465 | 18 current_version() |
pascal@24465 | 19 { |
pascal@24465 | 20 wget -O - https://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ 2>/dev/null | \ |
pascal@24465 | 21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24465 | 22 } |
pascal@24465 | 23 |
llev@18669 | 24 compile_rules() |
llev@18669 | 25 { |
pascal@19295 | 26 sed -i 's|/man/|/share&|' doc/Makefile* |
llev@18669 | 27 ./configure $CONFIGURE_ARGS \ |
llev@18669 | 28 --prefix=/usr --sharedstatedir=/var/lib --localstatedir=/var \ |
llev@18669 | 29 --enable-grace-home=/usr/share/grace \ |
llev@18669 | 30 --without-pdf-library \ |
llev@18669 | 31 --disable-netcdf --disable-editres \ |
llev@18669 | 32 --with-editor="editor" --with-helpviewer="browser %s" \ |
llev@18669 | 33 --disable-xmhtml && |
llev@18669 | 34 make && |
llev@18669 | 35 make install && |
llev@18669 | 36 make links |
llevrel@18688 | 37 mkdir -p $install/usr/share/applications |
llevrel@18688 | 38 cp -a $stuff/xmgrace.desktop $install/usr/share/applications |
llev@18669 | 39 } |
llev@18669 | 40 |
llev@18669 | 41 genpkg_rules() |
llev@18669 | 42 { |
llev@18669 | 43 cp -a $install/* $fs |
llevrel@18688 | 44 rm -r $fs/usr/share/grace/auxiliary/magic.grace \ |
llevrel@18688 | 45 $fs/usr/share/grace/doc/*.pdf \ |
llevrel@18688 | 46 $fs/usr/share/grace/doc/*.1 \ |
llevrel@18688 | 47 $fs/usr/man |
llev@18669 | 48 } |