wok-current annotate leptonica/receipt @ rev 24579
linld: do not confuse memtop and topload
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 27 11:43:07 2022 +0000 (2022-02-27) |
parents | 26394d9555d4 |
children | 2cd3f255f983 |
rev | line source |
---|---|
pascal@16668 | 1 # SliTaz package receipt. |
pascal@16668 | 2 |
pascal@16668 | 3 PACKAGE="leptonica" |
Hans-G?nter@22997 | 4 VERSION="1.79.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 { |
pascal@16668 | 39 mkdir -p $fs/usr/lib |
Hans-G?nter@22021 | 40 |
Hans-G?nter@22021 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22021 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22021 | 43 } |