aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-09-14 17:04:59 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-17 00:10:37 +0700
commit6af8475c85972398335edf2734bdedf7006968bf (patch)
treebd97c485d7d35be347ed645071efec15734946da /office
parentb24ddac5ff07e75c31bc8dd54b76c0e513ed90f1 (diff)
office/anorack: Updated for version 0.2.8, new maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/anorack/README2
-rw-r--r--office/anorack/anorack.SlackBuild62
-rw-r--r--office/anorack/anorack.info10
-rw-r--r--office/anorack/slack-desc8
4 files changed, 31 insertions, 51 deletions
diff --git a/office/anorack/README b/office/anorack/README
index b793a4a14cb5..bc7d7087f2cc 100644
--- a/office/anorack/README
+++ b/office/anorack/README
@@ -1,3 +1,5 @@
+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
diff --git a/office/anorack/anorack.SlackBuild b/office/anorack/anorack.SlackBuild
index e380249ecd7d..21c554b7c6b1 100644
--- a/office/anorack/anorack.SlackBuild
+++ b/office/anorack/anorack.SlackBuild
@@ -2,31 +2,22 @@
# Slackware build script for anorack
-# Copyright 2018-2020 Donald Cooley, South Haven, Indiana, USA
-# Copyright 2022 Brandon Pribula, BC Canada
-# 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.7}
+VERSION=${VERSION:-0.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,30 +41,17 @@ 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
diff --git a/office/anorack/anorack.info b/office/anorack/anorack.info
index d4592cf56e00..f8d755c0b512 100644
--- a/office/anorack/anorack.info
+++ b/office/anorack/anorack.info
@@ -1,10 +1,10 @@
PRGNAM="anorack"
-VERSION="0.2.7"
+VERSION="0.2.8"
HOMEPAGE="https://jwilk.net/software/anorack"
-DOWNLOAD="https://github.com/jwilk/anorack/releases/download/0.2.7/anorack-0.2.7.tar.gz"
-MD5SUM="a1220ec4e4f50cc249813b42b89d105c"
+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=""
-MAINTAINER="Brandon Pribula"
-EMAIL="b.pribs11@gmail.com"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/office/anorack/slack-desc b/office/anorack/slack-desc
index dfaf23df7ba9..2fa8b8f830ee 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.