summaryrefslogtreecommitdiff
path: root/office/gocr/gocr.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-03-04 11:08:28 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-08 12:14:43 -0600
commit7efaaaf1228647a3ac703a4e49a1a3a1578e553c (patch)
tree4d27204d1fed4ff445fb08d4e04b2dfdf1b316cf /office/gocr/gocr.SlackBuild
parent79bb3c9fdc8f2ed7514323cae6dc8fcc2370f4cd (diff)
downloadslackbuilds-7efaaaf1228647a3ac703a4e49a1a3a1578e553c.tar.gz
office/gocr: Updated for version 0.49.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/gocr/gocr.SlackBuild')
-rw-r--r--office/gocr/gocr.SlackBuild13
1 files changed, 5 insertions, 8 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