summaryrefslogtreecommitdiff
path: root/office/gocr
diff options
context:
space:
mode:
Diffstat (limited to 'office/gocr')
-rw-r--r--office/gocr/gocr.SlackBuild13
-rw-r--r--office/gocr/gocr.info8
-rw-r--r--office/gocr/slack-desc2
3 files changed, 10 insertions, 13 deletions
diff --git a/office/gocr/gocr.SlackBuild b/office/gocr/gocr.SlackBuild
index 5e1cbedd16..e29da2f1e9 100644
--- a/office/gocr/gocr.SlackBuild
+++ b/office/gocr/gocr.SlackBuild
@@ -3,7 +3,8 @@
# Slackware Package Build Script for GOCR
# Home Page http://jocr.sourceforge.net/index.html
-# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
+# Copyright (c) 2008-2011, Nishant Limbachia, Hoffman Estates, IL, USA
+# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +26,8 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gocr
-VERSION=0.48
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.49}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -76,6 +77,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/bin \
--exec-prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -86,20 +88,15 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-###
-mv $PKG/bin $PKG/usr
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS BUGS CREDITS INSTALL README* HISTORY TODO \
doc/*.txt doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-### strip binaries
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-### compress man page
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/install
diff --git a/office/gocr/gocr.info b/office/gocr/gocr.info
index 5be684fa75..361a8482c7 100644
--- a/office/gocr/gocr.info
+++ b/office/gocr/gocr.info
@@ -1,10 +1,10 @@
PRGNAM="gocr"
-VERSION="0.48"
+VERSION="0.49"
HOMEPAGE="http://jocr.sourceforge.net/index.html"
-DOWNLOAD="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.48.tar.gz"
-MD5SUM="9882ba9a93fcb18ab704a10da80c228c"
+DOWNLOAD="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz"
+MD5SUM="4e527bc4bdd97c2be15fdd818857507f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net"
-APPROVED="Erik Hanson"
+APPROVED="rworkman"
diff --git a/office/gocr/slack-desc b/office/gocr/slack-desc
index cb602add90..9c6b840769 100644
--- a/office/gocr/slack-desc
+++ b/office/gocr/slack-desc
@@ -7,7 +7,7 @@
|-----handy-ruler------------------------------------------------------|
gocr: gocr (open source character recognition)
-gocr:
+gocr:
gocr: GOCR is an optical character recognition program released under
gocr: GNU GPL. It reads images in many formats and outputs a text file
gocr: and is capable of doing several other tasks. Please refer README