# SliTaz package receipt. PACKAGE="leptonica" VERSION="1.82.0" CATEGORY="graphics" SHORT_DESC="Software for image processing and image analysis applications." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="http://www.leptonica.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}source/$TARBALL" DEPENDS="giflib jpeg libpng libxcb tiff xorg-libX11 xorg-libXau xorg-libXdmcp" BUILD_DEPENDS="autoconf automake giflib-dev jpeg-dev libpng-dev libtool tiff-dev xorg-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/DanBloomberg/leptonica/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_files *.so* }