wok annotate magnifier/receipt @ rev 24419

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 11:14:46 2022 +0000 (2022-02-11)
parents 9c5333f3023a
children 7dd01dedad38
rev   line source
paul@1157 1 # SliTaz package receipt.
paul@1157 2
paul@1157 3 PACKAGE="magnifier"
paul@17291 4 VERSION="3.5"
paul@1157 5 CATEGORY="utilities"
paul@1157 6 SHORT_DESC="Virtual magnifying glass"
paul@1157 7 MAINTAINER="paul@slitaz.org"
pascal@15610 8 LICENSE="GPL2"
paul@1157 9 SOURCE="magnifier-linux"
paul@1157 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
paul@1157 11 WEB_SITE="http://magnifier.sourceforge.net/"
paul@1157 12 WGET_URL="http://downloads.sourceforge.net/magnifier/$TARBALL"
paul@1157 13
pascal@15610 14 DEPENDS="expat gtk+ xorg-libX11 xorg-libXau xorg-libXcomposite \
pascal@15610 15 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
pascal@15610 16 xorg-libXrandr xorg-libXrender xorg-libXdamage"
pascal@15610 17
pascal@24361 18 # What is the latest version available today?
pascal@24361 19 current_version()
pascal@24361 20 {
pascal@24361 21 wget -O - https://sourceforge.net/projects/magnifier/files/magnifier%20for%20Linux/ 2>/dev/null | \
pascal@24361 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 23 sed '/scope="row/!d;s|.*/magnifier%20for%20Linux/||;s|/.*||;q'
pascal@24361 24 }
pascal@24361 25
paul@1157 26 # Rules to configure and make the package.
paul@1157 27 compile_rules()
paul@1157 28 {
paul@1157 29 cd $src
pascal@15602 30 ./install.sh DESTDIR=$DESTDIR install
paul@1157 31 }
paul@1157 32
paul@1157 33 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1157 34 genpkg_rules()
paul@1157 35 {
paul@1157 36 mkdir -p $fs/usr/share/pixmaps
pascal@15603 37 cp -a $install/usr/bin $fs/usr
pascal@15603 38 cp -a $install/usr/share $fs/usr
pascal@15603 39 cp $install/usr/share/magnifier/icon3.ico $fs/usr/share/pixmaps/icon3.png
paul@1157 40 }
paul@1157 41