wok view gocr/receipt @ rev 25097
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 18 20:27:19 2022 +0000 (2022-06-18) |
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 }