aboutsummaryrefslogtreecommitdiff
path: root/libraries/allegro/allegro.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/allegro/allegro.SlackBuild')
-rw-r--r--libraries/allegro/allegro.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild
index 121ebc6469058..5181e763be5ce 100644
--- a/libraries/allegro/allegro.SlackBuild
+++ b/libraries/allegro/allegro.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=allegro
VERSION=${VERSION:-4.4.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -90,6 +90,15 @@ mkdir -p $PKG/etc
cp allegro.cfg $PKG/etc/allegro.cfg.new
gzip -9 $PKG/usr/info/*.info*
+# 20140512 bkw: if eawpats is installed, create a patches.dat so Allegro
+# MIDI playback works.
+if [ -e /usr/share/sounds/eawpats/default.cfg ]; then
+ LD_LIBRARY_PATH=$PKG/usr/lib$LIBDIRSUFFIX \
+ $PKG/usr/bin/pat2dat \
+ /usr/share/sounds/eawpats/default.cfg \
+ $PKG/usr/share/$PRGNAM/patches.dat
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a readme.txt todo.txt AUTHORS CHANGES THANKS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild