summaryrefslogtreecommitdiff
path: root/games/generator_cbiere/generator_cbiere.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-04-23 20:47:13 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2013-04-28 12:28:07 -0300
commit4c2b79a8231d4a5b09e12b208cdc57d580ea8571 (patch)
treec91996e824ef21b86036628cb24a6c9674222b93 /games/generator_cbiere/generator_cbiere.SlackBuild
parent95ddf0ddbec171b5290db3d3b368172783939707 (diff)
downloadslackbuilds-4c2b79a8231d4a5b09e12b208cdc57d580ea8571.tar.gz
games/generator_cbiere: Updated for version 0.35r4.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/generator_cbiere/generator_cbiere.SlackBuild')
-rw-r--r--games/generator_cbiere/generator_cbiere.SlackBuild28
1 files changed, 21 insertions, 7 deletions
diff --git a/games/generator_cbiere/generator_cbiere.SlackBuild b/games/generator_cbiere/generator_cbiere.SlackBuild
index 7ee012f39d..9cdf0eb13d 100644
--- a/games/generator_cbiere/generator_cbiere.SlackBuild
+++ b/games/generator_cbiere/generator_cbiere.SlackBuild
@@ -6,17 +6,21 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20130402 bkw:
+# - Updated for 0.35r4 (heh, it's only been out since 2008)
+# - Fixed homepage in .info file
+# - Added man page
+# - Documented Z80CORE option in README
+
PRGNAM=generator_cbiere
-VERSION=${VERSION:-0.35r3}
+VERSION=${VERSION:-0.35r4}
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
@@ -26,9 +30,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# I am just not going to contort the script to turn the $VERSION
-# into the source filename. Caveat scriptor...
-SOURCE=generator-0.35-cbiere-r3
+SOURCE=generator-$( echo $VERSION | sed "s,r,-cbiere-r,")
# The docs say the "raze" Z80 core is faster, but x86-only.
# If you really want the "cmz80" core on an x86 box, set
@@ -67,7 +69,8 @@ CXXFLAGS="$SLKCFLAGS" \
--with-sdl-audio \
--build=$ARCH-slackware-linux
-make
+# Have to force -j1 or the build fails. Bummer.
+make -j1
make install-strip DESTDIR=$PKG
# Icon by Deleket (Jojo Mendoza), downloaded from:
@@ -75,9 +78,20 @@ make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+# .desktop file by SlackBuild author
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+# man page by SlackBuild author
+mkdir -p $PKG/usr/man/man6
+if [ ! -e $CWD/generator-gtk.6 ]; then
+ pod2man \
+ -s6 -r0.35r4 --stderr -nGENERATOR-GTK -c'SlackBuilds.org' \
+ $CWD/generator-gtk.pod \
+ > $CWD/generator-gtk.6
+fi
+gzip -9c < $CWD/generator-gtk.6 > $PKG/usr/man/man6/generator-gtk.6.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS COPYING ChangeLog LICENSE NEWS README TODO docs/* \
$PKG/usr/doc/$PRGNAM-$VERSION