libraries/allegro4: Handle /usr/info/dir.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-06-27 17:07:30 -04:00 committed by Willy Sudiarto Raharjo
parent 107874cdec
commit 9ca07b1a88
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 21 additions and 6 deletions

View file

@ -1,7 +1,7 @@
allegro4 (game programming library)
The Allegro library provides C/C++ programmers low level routines
commonly needed in game programming, such as input, graphics, midi,
commonly needed in game programming, such as input, graphics, MIDI,
sound effects, and timing. It is cross platform and works with many
different compilers. Originally developed by Shawn Hargreaves, it is
now a group project with contributions from all over the world! Some

View file

@ -26,6 +26,10 @@
# Now maintained by B. Watson <urchlay@slackware.uk>
# 20230627 bkw: BUILD=4
# - fix doinst.sh, add douninst.sh to handle /usr/info/dir.
# - minor nitpick: midi => MIDI in README and slack-desc.
# 20220402 bkw: BUILD=3
# - install docs in correct dir (PRGNAM, not SRCNAM).
@ -42,7 +46,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=allegro4
SRCNAM=allegro
VERSION=${VERSION:-4.4.3.1}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -125,6 +129,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

View file

@ -1,14 +1,18 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/allegro.cfg.new
if [ -x /usr/bin/install-info -a -d usr/info ]; then
( cd usr/info
rm -f dir
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
)
fi

View file

@ -0,0 +1,6 @@
if [ -x /usr/bin/install-info -a -d usr/info ]; then
( cd usr/info
rm -f dir
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
)
fi

View file

@ -9,7 +9,7 @@
allegro4: allegro4 (game programming library)
allegro4:
allegro4: The Allegro library provides C/C++ programmers low level routines
allegro4: commonly needed in game programing, such as input, graphics, midi,
allegro4: commonly needed in game programing, such as input, graphics, MIDI,
allegro4: sound effects, and timing.
allegro4:
allegro4: http://www.allegro.cc/