mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/allegro: Updated for version 5.0.11 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a3f937bbfe
commit
fcde1b790b
2 changed files with 14 additions and 26 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Slackware build script for allegro
|
# Slackware build script for allegro
|
||||||
|
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
|
||||||
#
|
#
|
||||||
# Copyright 2009-2011 Erik W. Hanson, Minneapolis, MN, USA
|
# Copyright 2009-2011 Erik W. Hanson, Minneapolis, MN, USA
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=allegro
|
PRGNAM=allegro
|
||||||
VERSION=${VERSION:-4.4.2}
|
VERSION=${VERSION:-5.0.11}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -40,6 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
DOCS="CHANGES* CONTRIBUTORS* LICENSE* README*"
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
@ -67,7 +69,7 @@ find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -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
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
|
@ -81,26 +83,12 @@ cd build
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
cd ..
|
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
|
| 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
|
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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="allegro"
|
PRGNAM="allegro"
|
||||||
VERSION="4.4.2"
|
VERSION="5.0.11"
|
||||||
HOMEPAGE="http://www.allegro.cc/"
|
HOMEPAGE="http://www.allegro.cc/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/alleg/allegro-4.4.2.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/alleg/allegro-5.0.11.tar.gz"
|
||||||
MD5SUM="4db71b0460fc99926ae91d223199c2e6"
|
MD5SUM="e9a02220fada0488ed1dec6d5a8f6d33"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="eawpats"
|
REQUIRES="eawpats"
|
||||||
MAINTAINER="Erik Hanson"
|
MAINTAINER="Ryan P.C. McQuen"
|
||||||
EMAIL="erik@slackbuilds.org"
|
EMAIL="ryan.q@linux.com"
|
||||||
|
|
Loading…
Reference in a new issue