wok-current annotate leptonica/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | ad8b9ff412d2 |
children |
rev | line source |
---|---|
pascal@16668 | 1 # SliTaz package receipt. |
pascal@16668 | 2 |
pascal@16668 | 3 PACKAGE="leptonica" |
Hans-G?nter@24711 | 4 VERSION="1.82.0" |
pascal@16668 | 5 CATEGORY="graphics" |
pascal@16668 | 6 SHORT_DESC="Software for image processing and image analysis applications." |
pascal@16668 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16668 | 8 LICENSE="MIT" |
pascal@16668 | 9 WEB_SITE="http://www.leptonica.org/" |
Hans-G?nter@22021 | 10 |
pascal@16668 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22021 | 12 WGET_URL="${WEB_SITE}source/$TARBALL" |
pascal@16668 | 13 |
Hans-G?nter@22021 | 14 DEPENDS="giflib jpeg libpng libxcb tiff xorg-libX11 xorg-libXau xorg-libXdmcp" |
Hans-G?nter@22999 | 15 BUILD_DEPENDS="autoconf automake giflib-dev jpeg-dev libpng-dev libtool |
Hans-G?nter@22999 | 16 tiff-dev xorg-dev" |
pascal@16668 | 17 |
pascal@24433 | 18 # What is the latest version available today? |
pascal@24433 | 19 current_version() |
pascal@24433 | 20 { |
pascal@24433 | 21 wget -O - https://github.com/DanBloomberg/leptonica/releases 2>/dev/null | \ |
pascal@24433 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24433 | 23 } |
pascal@24433 | 24 |
pascal@16668 | 25 # Rules to configure and make the package. |
pascal@16668 | 26 compile_rules() |
pascal@16668 | 27 { |
Hans-G?nter@22021 | 28 ./autogen.sh && |
Hans-G?nter@22021 | 29 ./configure \ |
Hans-G?nter@22021 | 30 --prefix=/usr \ |
pascal@16668 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@22021 | 32 make && |
Hans-G?nter@22021 | 33 make install |
pascal@16668 | 34 } |
pascal@16668 | 35 |
pascal@16668 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16668 | 37 genpkg_rules() |
pascal@16668 | 38 { |
Hans-G?nter@24711 | 39 cook_copy_folders bin |
Hans-G?nter@24711 | 40 cook_copy_files *.so* |
Hans-G?nter@22021 | 41 } |