wok view leptonica/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 26394d9555d4
children 2cd3f255f983
line source
1 # SliTaz package receipt.
3 PACKAGE="leptonica"
4 VERSION="1.79.0"
5 CATEGORY="graphics"
6 SHORT_DESC="Software for image processing and image analysis applications."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.leptonica.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}source/$TARBALL"
14 DEPENDS="giflib jpeg libpng libxcb tiff xorg-libX11 xorg-libXau xorg-libXdmcp"
15 BUILD_DEPENDS="autoconf automake giflib-dev jpeg-dev libpng-dev libtool
16 tiff-dev xorg-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/DanBloomberg/leptonica/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./autogen.sh &&
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }