wok-6.x annotate feh/receipt @ rev 24433

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 18:42:31 2022 +0000 (2022-02-12)
parents a91e008889b7
children 63d5c5001e68
rev   line source
mallory@1133 1 # SliTaz package receipt
mallory@1133 2
mallory@1133 3 PACKAGE="feh"
Hans-G?nter@22718 4 VERSION="3.3"
mallory@1133 5 CATEGORY="graphics"
Hans-G?nter@22718 6 TAGS="image photo viewer"
Hans-G?nter@22718 7 SHORT_DESC="Lightweight and powerful image viewer and composer."
pankso@16429 8 MAINTAINER="pankso@slitaz.org"
pascal@15593 9 LICENSE="MIT"
Hans-G?nter@22718 10 WEB_SITE="https://feh.finalrewind.org/"
Hans-G?nter@22718 11
slaxemulator@6510 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22718 13 WGET_URL="${WEB_SITE}$TARBALL"
Hans-G?nter@22718 14
Hans-G?nter@22718 15 DEPENDS="freetype gcc83-lib-base giblib imlib2 jpeg libcurl libpng xorg-libX11
Hans-G?nter@22718 16 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXinerama"
Hans-G?nter@22718 17 BUILD_DEPENDS="curl-dev gcc83 giblib-dev imlib2-dev jpeg-dev libpng-dev
Hans-G?nter@22718 18 xorg-libX11-dev xorg-xineramaproto xorg-xproto"
Hans-G?nter@22718 19
pankso@16360 20 HOST_ARCH="i486 arm"
mallory@1133 21
pascal@24433 22 # What is the latest version available today?
pascal@24433 23 current_version()
pascal@24433 24 {
pascal@24433 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24433 26 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*.*|\\1|" | sort -Vr | sed q
pascal@24433 27 }
pascal@24433 28
mallory@1133 29 # Rules to configure and make the package.
mallory@1133 30 compile_rules()
mallory@1133 31 {
Hans-G?nter@22718 32 make \
Hans-G?nter@22718 33 CC=gcc-83 \
Hans-G?nter@22718 34 PREFIX=/usr &&
Hans-G?nter@22718 35 make install \
Hans-G?nter@22718 36 PREFIX=/usr \
Hans-G?nter@22718 37 DESTDIR=$DESTDIR &&
Hans-G?nter@22718 38
pankso@16429 39 # Fix path to icon and remove from menu since it need a param to
pankso@16429 40 # load images.
pankso@16429 41 sed -i \
pankso@16429 42 -e s'#/home/slitaz/wok/feh/install##' \
pankso@16429 43 -e '/Categories.*/'d \
pankso@16429 44 $DESTDIR/usr/share/applications/feh.desktop || return 1
mallory@1133 45 }
mallory@1133 46
mallory@1133 47 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@1133 48 genpkg_rules()
mallory@1133 49 {
mallory@1133 50 mkdir -p $fs/usr/bin
mallory@1407 51 mkdir -p $fs/usr/share/feh/fonts
mallory@1407 52 mkdir -p $fs/usr/share/feh/images
mallory@1407 53
Hans-G?nter@22718 54 cp -a $install/usr/bin/feh $fs/usr/bin
Hans-G?nter@22718 55 cp -a $install/usr/share/feh/fonts $fs/usr/share/feh
Hans-G?nter@22718 56 cp -a $install/usr/share/feh/images $fs/usr/share/feh
mallory@1133 57 }