summaryrefslogtreecommitdiffstats
path: root/office/anorack
diff options
context:
space:
mode:
Diffstat (limited to 'office/anorack')
-rw-r--r--office/anorack/README8
-rw-r--r--office/anorack/anorack.SlackBuild93
-rw-r--r--office/anorack/anorack.info14
-rw-r--r--office/anorack/slack-desc8
4 files changed, 45 insertions, 78 deletions
diff --git a/office/anorack/README b/office/anorack/README
index 0f2124c1a3..bc7d7087f2 100644
--- a/office/anorack/README
+++ b/office/anorack/README
@@ -1,9 +1,11 @@
+anorack ("a" vs "an" checker)
+
The English language has two indefinite articles:
a: used before words that begin with a consonant sound (e.g., a
- program, a host, a user);
- an: used before words that begin with a vowel sound (e.g., an
- example, an hour, an undefined variable).
+ program, a host, a user);
+ an: used before words that begin with a vowel sound (e.g., an example,
+ an hour, an undefined variable).
anorack is a specialized spell-checker that finds incorrect indefinite
articles.
diff --git a/office/anorack/anorack.SlackBuild b/office/anorack/anorack.SlackBuild
index 86e4e1888e..21c554b7c6 100644
--- a/office/anorack/anorack.SlackBuild
+++ b/office/anorack/anorack.SlackBuild
@@ -1,59 +1,37 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for anorack
-# Copyright 2018 Donald Cooley South Haven, Indiana USA
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Original author: Donald Cooley, South Haven, Indiana, USA.
+# Formerly maintained by: Brandon Pribula, BC Canada.
+# Now maintained by B. Watson (urchlay@slackware.uk).
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20230914 bkw:
+# - take over maintenance.
+# - update for v0.2.8.
+# - relicense as WTFPL.
+# - tweak README and slack-desc slightly.
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=anorack
-VERSION=${VERSION:-0.2.4}
+VERSION=${VERSION:-0.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH=noarch
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -63,33 +41,20 @@ rm -rf $PRGNAM-$VERSION
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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-# Install to /usr instead of /usr/local
-sed -i 's_/usr/local_/usr_' Makefile
-
-# Install man pages into /usr/man instead of /usr/share/man
-sed -i 's_/share/man_/man_' Makefile
-
-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
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+[ "${MAKETEST:-no}" = "yes" ] && make test
+make install PREFIX=/usr mandir=/usr/man DESTDIR=$PKG
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
-cp -a doc/LICENSE doc/README doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a doc/LICENSE doc/README doc/changelog $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/office/anorack/anorack.info b/office/anorack/anorack.info
index 7738daefbc..f8d755c0b5 100644
--- a/office/anorack/anorack.info
+++ b/office/anorack/anorack.info
@@ -1,10 +1,10 @@
PRGNAM="anorack"
-VERSION="0.2.4"
-HOMEPAGE="http://jwilk.net/software/anorack"
-DOWNLOAD="https://github.com/jwilk/anorack/releases/download/0.2.4/anorack-0.2.4.tar.gz"
-MD5SUM="c06e97e952f8837a61a4f3bce0c1f0cf"
+VERSION="0.2.8"
+HOMEPAGE="https://jwilk.net/software/anorack"
+DOWNLOAD="https://github.com/jwilk/anorack/releases/download/0.2.8/anorack-0.2.8.tar.gz"
+MD5SUM="f53279504519b475d6a1d0c0b4f601c2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3 espeak"
-MAINTAINER="Donald Cooley"
-EMAIL="chytraeu@sdf.org"
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/office/anorack/slack-desc b/office/anorack/slack-desc
index dfaf23df7b..2fa8b8f830 100644
--- a/office/anorack/slack-desc
+++ b/office/anorack/slack-desc
@@ -9,10 +9,10 @@
anorack: anorack ("a" vs "an" checker)
anorack:
anorack: The English language has two indefinite articles:
-anorack: a: used before words that begin with a consonant sound (e.g., a
-anorack: program, a host, a user);
-anorack: an: used before words that begin with a vowel sound (e.g., an example,
-anorack: an hour, an undefined variable).
+anorack: a: used before words that begin with a consonant sound (e.g., a
+anorack: program, a host, a user);
+anorack: an: used before words that begin with a vowel sound (e.g., an
+anorack: example, an hour, an undefined variable).
anorack:
anorack: anorack is a specialized spell-checker that finds incorrect indefinite
anorack: articles.