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