wok annotate fbida/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | a3c45ab9082e |
children | 73f36875e5a7 |
rev | line source |
---|---|
devl547@6115 | 1 # SliTaz package receipt. |
devl547@6115 | 2 |
devl547@6115 | 3 PACKAGE="fbida" |
pankso@16095 | 4 VERSION="2.09" |
pascal@6138 | 5 CATEGORY="utilities" |
mojo@14205 | 6 SHORT_DESC="Image viewer for the framebuffer console" |
devl547@6115 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15001 | 8 LICENSE="GPL2" |
devl547@6115 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
devl547@6115 | 10 WEB_SITE="http://linux.bytesex.org/fbida/" |
devl547@6115 | 11 WGET_URL="http://dl.bytesex.org/releases/$PACKAGE/$TARBALL" |
pankso@16095 | 12 HOST_ARCH="i486 arm" |
devl547@6115 | 13 |
pankso@9960 | 14 DEPENDS="libpng giflib tiff jpeg ttf-bitstream-vera libexif zlib \ |
mojo@14205 | 15 libcurl freetype fontconfig" |
pascal@18384 | 16 BUILD_DEPENDS="freetype-dev fontconfig-dev libexif-dev curl-dev jpeg-dev \ |
pascal@24087 | 17 libpng-dev tiff-dev openmotif-dev sane-backends-dev" |
pankso@9960 | 18 |
pascal@24083 | 19 current_version() |
pascal@24083 | 20 { |
pascal@24083 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24083 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24083 | 23 } |
pascal@24083 | 24 |
devl547@6115 | 25 # Rules to configure and make the package. |
devl547@6115 | 26 compile_rules() |
devl547@6115 | 27 { |
pascal@21122 | 28 ln -s 80 jpeg/90 |
pascal@24087 | 29 sed 's/.#include <jpeglib.h>.n//;s/| cpp /&-include jpeglib.h /' -i GNUmakefile |
pankso@16095 | 30 make |
devl547@6115 | 31 } |
devl547@6115 | 32 |
devl547@6115 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@6115 | 34 genpkg_rules() |
devl547@6115 | 35 { |
pankso@16095 | 36 mkdir -p $fs/usr/bin |
pankso@16095 | 37 for tool in fbi fbgs exiftran; do |
pankso@16095 | 38 cp -a ${src}/${tool} $fs/usr/bin |
pankso@16095 | 39 done |
devl547@6115 | 40 } |