games/fceux: Fix Build.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
M.Dinslage 2015-06-12 11:24:14 +07:00 committed by Willy Sudiarto Raharjo
parent f0295751cf
commit b4e70c6097

View file

@ -25,7 +25,7 @@
PRGNAM=fceux PRGNAM=fceux
VERSION=${VERSION:-2.2.2} VERSION=${VERSION:-2.2.2}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -70,16 +70,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
# Default prefix is /usr, set our CFLAGS # Set our CFLAGS, move man pages
sed -i \ sed -i \
-e "s|/local||" \
-e "s|'-Wall'|${SLKCFLAGS}, '-Wall'|" \ -e "s|'-Wall'|${SLKCFLAGS}, '-Wall'|" \
-e "s|/share/man/man6/fceux.6|/man/man6/fceux.6|" \
-e "s|/share/man/man6/fceux-net-server.6|/man/man6/fceux-net-server.6|" \
SConstruct SConstruct
scons scons install -i --prefix=$PKG/usr
#Install binary #scons install creates usr/share/pixmaps as a regular file, delete that.
install -m 0755 -D bin/$PRGNAM $PKG/usr/games/$PRGNAM rm -f $PKG/usr/share/pixmaps
#install the man page #install the man page
mkdir -p $PKG/usr/man/man6 mkdir -p $PKG/usr/man/man6