wok-current view fbida/receipt @ rev 24083

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 11:40:16 2021 +0000 (2021-07-10)
parents 54964ce9b442
children 8dbc179f0f97
line source
1 # SliTaz package receipt.
3 PACKAGE="fbida"
4 VERSION="2.09"
5 CATEGORY="utilities"
6 SHORT_DESC="Image viewer for the framebuffer console"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://linux.bytesex.org/fbida/"
11 WGET_URL="http://dl.bytesex.org/releases/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libpng giflib tiff jpeg ttf-bitstream-vera libexif zlib \
15 libcurl freetype fontconfig"
16 BUILD_DEPENDS="freetype-dev fontconfig-dev libexif-dev curl-dev jpeg-dev \
17 libpng-dev tiff-dev openmotif-dev"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ln -s 80 jpeg/90
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 for tool in fbi fbgs exiftran; do
37 cp -a ${src}/${tool} $fs/usr/bin
38 done
39 }