wok-6.x view gocr/receipt @ rev 25510
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 20:36:56 2023 +0000 (20 months ago) |
parents | 370da83187ab |
children |
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="https://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 }