wok view xfce4-ristretto/receipt @ rev 24972

Up lzsa (1.3.11)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 08:42:44 2022 +0000 (2022-05-01)
parents 17091bc7c301
children 74177c622f68
line source
1 # SliTaz package receipt.
3 PACKAGE="xfce4-ristretto"
4 VERSION="0.6.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Picture-viewer for Xfce"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="ristretto"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://goodies.xfce.org/projects/applications/ristretto"
12 WGET_URL="https://archive.xfce.org/src/apps/$SOURCE/${VERSION%.*}/$TARBALL"
14 DEPENDS="libxfce4util libxfce4ui libexif dbus-glib thunar gamin xfconf"
15 BUILD_DEPENDS="xfce4-dev-tools intltool libexif-dev dbus-glib-dev libxfce4util-dev \
16 libxfce4ui-dev xfconf-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
22 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 ./configure && make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr \
37 $fs/usr/share/icons/hicolor \
38 $fs/usr/share/pixmaps
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/icons/hicolor/16* $fs/usr/share/icons/hicolor
42 cp -a $install/usr/share/icons/hicolor/48* $fs/usr/share/icons/hicolor
43 ln -s /usr/share/icons/hicolor/48x48/apps/$SOURCE.png $fs/usr/share/pixmaps/$SOURCE.png
44 }
46 post_install()
47 {
48 echo
49 echo "Execute post-install command"
50 gtk-update-icon-cache -f -t -q "$1/usr/share/icons/hicolor"
51 }