From a9f2179535a56247de1c7d1d53934ee0549758e9 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Wed, 21 Jun 2023 21:10:56 +0700 Subject: office/gocr: Updated for version 0.52. Signed-off-by: Willy Sudiarto Raharjo --- office/gocr/gocr.SlackBuild | 32 +++++++++++++++----------------- office/gocr/gocr.info | 12 ++++++------ office/gocr/slack-desc | 2 +- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/office/gocr/gocr.SlackBuild b/office/gocr/gocr.SlackBuild index 866cae21ef..7cbed30247 100644 --- a/office/gocr/gocr.SlackBuild +++ b/office/gocr/gocr.SlackBuild @@ -1,10 +1,9 @@ #!/bin/bash -# Slackware Package Build Script for GOCR -# Home Page http://jocr.sourceforge.net/index.html +# Slackware build script for gocr # Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA -# +# Copyright 2023 Johannes Schoepfer, Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -28,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="gocr" -VERSION=${VERSION:-0.50} +VERSION=${VERSION:-0.52} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -77,10 +73,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} + -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + CFLAGS="$SLKCFLAGS" \ ./configure \ @@ -96,17 +92,19 @@ CFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +chmod 644 $PKG/usr/man/man1/$PRGNAM.1 +find $PKG/usr/man -type f -exec gzip -9 {} + +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS BUGS CREDITS INSTALL README* HISTORY TODO \ + AUTHORS BUGS CREDITS README* HISTORY TODO \ doc/*.txt doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -gzip -9 $PKG/usr/man/man1/$PRGNAM.1 - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/office/gocr/gocr.info b/office/gocr/gocr.info index 81638a2a8c..38aaffe45c 100644 --- a/office/gocr/gocr.info +++ b/office/gocr/gocr.info @@ -1,10 +1,10 @@ PRGNAM="gocr" -VERSION="0.50" -HOMEPAGE="http://jocr.sourceforge.net/index.html" -DOWNLOAD="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.50.tar.gz" -MD5SUM="553ea40c2b3a1a0b03a30675d0e0aba1" +VERSION="0.52" +HOMEPAGE="https://www-e.ovgu.de/jschulen/ocr/" +DOWNLOAD="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz" +MD5SUM="e76c9a42574fb3152cad69a4bdbed397" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Nishant Limbachia" -EMAIL="nishant@mnspace.net" +MAINTAINER="Johannes Schoepfer" +EMAIL="slackbuilds@schoepfer.info" diff --git a/office/gocr/slack-desc b/office/gocr/slack-desc index 1759c95f97..c98ba7e0c9 100644 --- a/office/gocr/slack-desc +++ b/office/gocr/slack-desc @@ -13,7 +13,7 @@ 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 gocr: in documentation for more info. gocr: -gocr: Home Page http://jocr.sourceforge.net/index.html +gocr: https://www-e.ovgu.de/jschulen/ocr/ gocr: gocr: gocr: -- cgit v1.2.3