wok view gqview/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents 33b800b4871e
children 6b33f9da53d4
line source
1 # SliTaz package receipt.
3 PACKAGE="gqview"
4 VERSION="2.1.5"
5 CATEGORY="graphics"
6 SHORT_DESC="Images viewer and manager using GTK+."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://gqview.sourceforge.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="gtk+ xorg-libXdamage"
15 BUILD_DEPENDS="pkg-config gtk+ gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/gqview/files/unstable/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/unstable/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
30 ./configure \
31 --prefix=/usr \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/locale
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/share/pixmaps $fs/usr/share
45 # locales
46 LOCALE="ca da de es fr id it pl pt_BR ru sv uk zh_CN"
47 for locale in $LOCALE
48 do
49 if [ -e $install/usr/share/locale/$locale/gqview.mo ]
50 then
51 mkdir -p $fs/usr/share/locale/$locale/LC_MESSAGES
52 cp -a $install/usr/share/locale/$locale/gqview.mo \
53 $fs/usr/share/locale/$locale/LC_MESSAGES
54 fi
55 done
56 }