summaryrefslogtreecommitdiff
path: root/libraries/allegro/allegro.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/allegro/allegro.SlackBuild')
-rw-r--r--libraries/allegro/allegro.SlackBuild30
1 files changed, 9 insertions, 21 deletions
diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild
index 5181e763be..e3d8b983f6 100644
--- a/libraries/allegro/allegro.SlackBuild
+++ b/libraries/allegro/allegro.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-#
# Slackware build script for allegro
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
#
# Copyright 2009-2011 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=allegro
-VERSION=${VERSION:-4.4.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-5.0.11}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,6 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="CHANGES* CONTRIBUTORS* LICENSE* README*"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -67,7 +69,7 @@ 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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
@@ -81,26 +83,12 @@ cd build
make install DESTDIR=$PKG
cd ..
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
-mkdir -p $PKG/usr/share/allegro
-cp language.dat keyboard.dat $PKG/usr/share/allegro
-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
+cp -a $DOCS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install