diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-27 17:07:30 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:58 +0700 |
commit | 9ca07b1a888c81e7e73bf7509249e8709829b490 (patch) | |
tree | 294210627679eea4ab3b58ecf722836b33776785 /libraries | |
parent | 107874cdec3c2faac20d0a9fa4d9b51ce455d7f9 (diff) |
libraries/allegro4: Handle /usr/info/dir.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/allegro4/README | 2 | ||||
-rw-r--r-- | libraries/allegro4/allegro4.SlackBuild | 7 | ||||
-rw-r--r-- | libraries/allegro4/doinst.sh | 10 | ||||
-rw-r--r-- | libraries/allegro4/douninst.sh | 6 | ||||
-rw-r--r-- | libraries/allegro4/slack-desc | 2 |
5 files changed, 21 insertions, 6 deletions
diff --git a/libraries/allegro4/README b/libraries/allegro4/README index 106dd778a3752..c5269dfcb41c5 100644 --- a/libraries/allegro4/README +++ b/libraries/allegro4/README @@ -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 diff --git a/libraries/allegro4/allegro4.SlackBuild b/libraries/allegro4/allegro4.SlackBuild index 4f10b8d544057..d237453a3c710 100644 --- a/libraries/allegro4/allegro4.SlackBuild +++ b/libraries/allegro4/allegro4.SlackBuild @@ -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 diff --git a/libraries/allegro4/doinst.sh b/libraries/allegro4/doinst.sh index 5e444b85f3fe0..9ee3f5d3d9b15 100644 --- a/libraries/allegro4/doinst.sh +++ b/libraries/allegro4/doinst.sh @@ -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 diff --git a/libraries/allegro4/douninst.sh b/libraries/allegro4/douninst.sh new file mode 100644 index 0000000000000..1bef5020286ea --- /dev/null +++ b/libraries/allegro4/douninst.sh @@ -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 diff --git a/libraries/allegro4/slack-desc b/libraries/allegro4/slack-desc index 811f43af8d281..3fe5e9e8874af 100644 --- a/libraries/allegro4/slack-desc +++ b/libraries/allegro4/slack-desc @@ -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/ |