summaryrefslogtreecommitdiffstats
path: root/office/gocr/gocr.SlackBuild
diff options
context:
space:
mode:
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