diff options
Diffstat (limited to 'games/an')
-rw-r--r-- | games/an/README | 4 | ||||
-rw-r--r-- | games/an/an.SlackBuild | 32 | ||||
-rw-r--r-- | games/an/an.info | 6 | ||||
-rw-r--r-- | games/an/slack-desc | 4 |
4 files changed, 25 insertions, 21 deletions
diff --git a/games/an/README b/games/an/README index 888b087077..bcdb674dfc 100644 --- a/games/an/README +++ b/games/an/README @@ -1,8 +1,8 @@ an (Anagram Generator) -Generates anagrams for a phrase supplied by the user, the words used in +Generates anagrams for a phrase supplied by the user. The words used in the anagram are taken from a specified dictionary which should contain -one word per line (default:/usr/share/dict/words). +one word per line (default: /usr/share/dict/words). On Slackware, /usr/share/dict/words comes from bsd-games, in y/ on the install media. diff --git a/games/an/an.SlackBuild b/games/an/an.SlackBuild index 71f6d9f5fc..f41e6ff2cb 100644 --- a/games/an/an.SlackBuild +++ b/games/an/an.SlackBuild @@ -1,20 +1,27 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for an -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230707 bkw: For some reason, the Debian source switched from .xz +# to .gz compressions. Contents of the archive are identical, not +# bumping BUILD. + # 20160804 bkw: Updated to 1.2. Apparently 1.2 is a release by the # maintainer(s) of the Debian an package, not the original author... # but the old 0.95 was segfaulting when built with gcc5. Also, the # new version has Unicode support. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=an VERSION=${VERSION:-1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,23 +31,23 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + 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 @@ -56,14 +63,11 @@ rm -rf $PKG mkdir -p $TMP $PKG/usr/{games,man/man6} $OUTPUT cd $TMP rm -rf ${PRGNAM}-${SRCVER} -tar xvf $CWD/${PRGNAM}_$TARVER.orig.tar.xz +tar xvf $CWD/${PRGNAM}_$TARVER.orig.tar.gz cd ${PRGNAM}-$SRCVER 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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ make MANDIR=/usr/man/man6 CC="gcc $SLKCFLAGS" make install DESTDIR=$PKG MANDIR=$PKG/usr/man/man6 @@ -101,4 +105,4 @@ if [ -e $CWD/$GUI_IN ]; then fi 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/games/an/an.info b/games/an/an.info index 5999bf7981..45115a59c5 100644 --- a/games/an/an.info +++ b/games/an/an.info @@ -1,10 +1,10 @@ PRGNAM="an" VERSION="1.2" HOMEPAGE="https://packages.debian.org/sid/an" -DOWNLOAD="http://http.debian.net/debian/pool/main/a/an/an_1.2.orig.tar.xz" -MD5SUM="1f3465bfe2cc4458f75a7a42037b475c" +DOWNLOAD="https://deb.debian.org/debian/pool/main/a/an/an_1.2.orig.tar.gz" +MD5SUM="5d28b8003a745f0110ed70f0cd4aa051" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" diff --git a/games/an/slack-desc b/games/an/slack-desc index 21565fb755..30a9bb048e 100644 --- a/games/an/slack-desc +++ b/games/an/slack-desc @@ -8,9 +8,9 @@ |-----handy-ruler------------------------------------------------------| an: an (Anagram Generator) an: -an: Generates anagrams for a phrase supplied by the user, the words used +an: Generates anagrams for a phrase supplied by the user. The words used an: in the anagram are taken from a specified dictionary which should -an: contain one word per line (default:/usr/share/dict/words). +an: contain one word per line (default: /usr/share/dict/words). an: an: an: |