diff options
Diffstat (limited to 'games/fceux/fceux.SlackBuild')
-rw-r--r-- | games/fceux/fceux.SlackBuild | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/games/fceux/fceux.SlackBuild b/games/fceux/fceux.SlackBuild index d2236f743d..2b57bf1031 100644 --- a/games/fceux/fceux.SlackBuild +++ b/games/fceux/fceux.SlackBuild @@ -5,16 +5,14 @@ # Written by M.Dinslage (daedra1980@gmail.com) PRGNAM=fceux -VERSION=${VERSION:-2.1.3} -BUILD=${BUILD:-4} +VERSION=${VERSION:-2.1.4a} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -38,14 +36,15 @@ else LIBDIRSUFFIX="" fi -set -e +set -e # Exit on most errors rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.src.tar.bz2 -cd fceu +cd fceu$VERSION +patch -p1 < $CWD/enable-recording.patch chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -54,34 +53,32 @@ find . \ -exec chmod 644 {} \; scons + +#Dont use scons install, we'll take care of install ourselves mkdir -p $PKG/usr/bin install -m 0755 bin/fceux $PKG/usr/bin + +#install man pages mkdir -p $PKG/usr/man/man6 install -m 0644 documentation/fceux.6 $PKG/usr/man/man6 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/fceux -cp -a \ - bin/fceux.chm COPYING INSTALL NEWS README-SDL TODO-PROJECT \ - $PKG/usr/doc/$PRGNAM-$VERSION/fceux - -# Build gfceux -cd $TMP/gfceux -python setup.py install --prefix=$PKG/usr -mkdir -p $PKG/usr/man/man1 -mv $PKG/usr/share/man/man1/gfceux.1 $PKG/usr/man/man1 -gzip -9 $PKG/usr/man/man?/* -rm -rf $PKG/usr/share/man -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/gfceux -cp ChangeLog COPYING INSTALL TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION/gfceux - -# This is supposed to work with gtk+2-2.14.x as well... -sed -i "s%2.16%2.14%" $PKG/usr/share/gfceux/gfceux.glade find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + bin/fceux.chm COPYING INSTALL NEWS README-SDL TODO-PROJECT \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +#Add icon and application launcher +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat $CWD/Nintendo.png > $PKG/usr/share/pixmaps/Nintendo.png + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |