wok view feh/receipt @ rev 24535

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