wok-6.x view gpicview/receipt @ rev 24071
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 10:35:01 2021 +0000 (2021-07-07) |
parents | 7317c4a06c89 |
children | 942f66f38758 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gpicview"
4 VERSION="0.2.5"
5 CATEGORY="graphics"
6 TAGS="LXDE viewer"
7 SHORT_DESC="Lightweight image viewer."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://lxde.sourceforge.net/gpicview/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 DEPENDS="gtk+ expat glib libgio libpng jpeg zlib"
16 BUILD_DEPENDS="gtk+-dev expat-dev glib-dev libgio-dev libpng-dev jpeg-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/lxde/files/GPicView%20%28image%20Viewer%29/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/share/$PACKAGE $fs/usr/share
41 }