wok view gocr/receipt @ rev 25032

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