wok annotate xfce4-ristretto/receipt @ rev 25622
Up bzip3 (1.3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 31 10:51:14 2023 +0000 (16 months ago) |
parents | bd7510903310 |
children |
rev | line source |
---|---|
erjo@4867 | 1 # SliTaz package receipt. |
erjo@4867 | 2 |
erjo@4867 | 3 PACKAGE="xfce4-ristretto" |
Hans-G?nter@25559 | 4 VERSION="0.8.5" |
erjo@4867 | 5 CATEGORY="x-window" |
Hans-G?nter@25559 | 6 TAGS="image viewer" |
Hans-G?nter@25559 | 7 SHORT_DESC="Picture-viewer for Xfce." |
erjo@4867 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@25559 | 10 WEB_SITE="https://docs.xfce.org/apps/ristretto/start" |
Hans-G?nter@25559 | 11 |
erjo@4867 | 12 SOURCE="ristretto" |
erjo@5847 | 13 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@24972 | 14 WGET_URL="https://archive.xfce.org/src/apps/$SOURCE/${VERSION%.*}/$TARBALL" |
erjo@4867 | 15 |
Hans-G?nter@25559 | 16 SUGGESTED="tumbler" # to show previews in thumbnail bar |
Hans-G?nter@25559 | 17 DEPENDS="dbus-glib libexif libxfce4ui libxfce4util xfconf" |
Hans-G?nter@25559 | 18 BUILD_DEPENDS="dbus-glib-dev intltool libexif-dev libxfce4ui-dev |
Hans-G?nter@25559 | 19 libxfce4util-dev xfconf-dev" |
erjo@9876 | 20 |
pascal@24415 | 21 # What is the latest version available today? |
pascal@24415 | 22 current_version() |
pascal@24415 | 23 { |
pascal@24415 | 24 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24415 | 25 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24415 | 26 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24415 | 27 } |
pascal@24415 | 28 |
erjo@4867 | 29 # Rules to configure and make the package. |
erjo@4867 | 30 compile_rules() |
erjo@4867 | 31 { |
Hans-G?nter@25559 | 32 ./configure && |
Hans-G?nter@25559 | 33 make && |
Hans-G?nter@25559 | 34 make install |
erjo@4867 | 35 } |
erjo@4867 | 36 |
erjo@4867 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4867 | 38 genpkg_rules() |
erjo@4867 | 39 { |
Hans-G?nter@25559 | 40 mkdir -p $fs/usr/share/icons/hicolor |
Hans-G?nter@25559 | 41 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@25559 | 42 |
Hans-G?nter@25559 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25559 | 44 cp -a $install/usr/share/icons/hicolor/16* $fs/usr/share/icons/hicolor |
Hans-G?nter@25559 | 45 cp -a $install/usr/share/icons/hicolor/48* $fs/usr/share/icons/hicolor |
Hans-G?nter@25559 | 46 ln -s /usr/share/icons/hicolor/48x48/apps/$SOURCE.png \ |
Hans-G?nter@25559 | 47 $fs/usr/share/pixmaps/$SOURCE.png |
erjo@4867 | 48 } |
erjo@4867 | 49 |
erjo@4867 | 50 post_install() |
erjo@4867 | 51 { |
pascal@20319 | 52 echo |
Hans-G?nter@25559 | 53 echo "Executing post-install command" |
pascal@18730 | 54 gtk-update-icon-cache -f -t -q "$1/usr/share/icons/hicolor" |
erjo@4867 | 55 } |