wok-6.x annotate gocr/receipt @ rev 24844

libunibreak: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 25 09:14:23 2022 +0000 (2022-03-25)
parents 9b0b8482701d
children 7dd01dedad38
rev   line source
pascal@3728 1 # SliTaz package receipt.
pascal@3728 2
pascal@3728 3 PACKAGE="gocr"
Hans-G?nter@20987 4 VERSION="0.52"
pascal@3728 5 CATEGORY="office"
Hans-G?nter@20987 6 TAGS="OCR"
pascal@3728 7 SHORT_DESC="Optical Character Recognition program."
pascal@3728 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15215 9 LICENSE="GPL"
Hans-G?nter@20987 10 WEB_SITE="http://jocr.sourceforge.net/"
Hans-G?nter@20987 11
pascal@3728 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@7966 13 WGET_URL="http://www-e.uni-magdeburg.de/jschulen/ocr/$TARBALL"
pascal@3728 14
pascal@14032 15 DEPENDS="libpng"
Hans-G?nter@20987 16 HOST_ARCH="i486 arm"
pascal@14032 17
pascal@24361 18 # What is the latest version available today?
pascal@24361 19 current_version()
pascal@24361 20 {
pascal@24361 21 wget -O - https://www-e.ovgu.de/jschulen/ocr/download.html 2>/dev/null | \
pascal@24361 22 sed '/\/ocr\/gocr-/!d;s|.*gocr-||;s|.tar.*||;q'
pascal@24361 23 }
pascal@24361 24
pascal@3728 25 # Rules to configure and make the package.
pascal@3728 26 compile_rules()
pascal@3728 27 {
Hans-G?nter@20987 28 patch --input=$stuff/gocr-0.52-pnm.patch src/pnm.c
Hans-G?nter@20987 29
Hans-G?nter@20987 30 ./configure \
Hans-G?nter@20987 31 --prefix=/usr \
pankso@16482 32 $CONFIGURE_ARGS &&
Hans-G?nter@20987 33 make -j 1 &&
pascal@14032 34 make DESTDIR=$DESTDIR install
pascal@3728 35 }
pascal@3728 36
pascal@3728 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3728 38 genpkg_rules()
pascal@3728 39 {
pascal@3728 40 mkdir -p $fs/bin
pascal@14032 41 cp -a $install/bin/gocr $fs/bin
pascal@3728 42 }