games/maelstrom: Fixed download link and desktop file
This commit also includes some rearrangement of script parts - done by me. Yes, I'm difficult ;-) Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
679bfeebbe
commit
6e38460986
|
@ -6,21 +6,20 @@
|
|||
|
||||
# Note to 64-bit users: Maelstrom-netd and the -server option to Maelstrom
|
||||
# do not work correctly. I haven't investigated why. You can still play
|
||||
# networked games in non-server mode (see man page). Users of actual
|
||||
# networked games in non-server mode (see man page). Users of 32-bit
|
||||
# Slackware are not affected by this.
|
||||
|
||||
PRGNAM=maelstrom
|
||||
SRCNAM=Maelstrom
|
||||
VERSION=${VERSION:-3.0.6}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
SRCNAM=Maelstrom
|
||||
|
||||
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
|
||||
|
@ -72,35 +71,30 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
strip $PKG/usr/games/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
make install_gamedocs target=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
# Why does `make install' install this?
|
||||
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Docs/Makefile
|
||||
|
||||
install -m0755 -o root -g root $CWD/maelstrom_addon_package.pl $PKG/usr/games
|
||||
strip --strip-unneeded $PKG/usr/games/*
|
||||
|
||||
# CLI users would probably prefer to type 'maelstrom', not 'Maelstrom'
|
||||
( cd $PKG/usr/games && ln -s $SRCNAM $PRGNAM )
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
( cd $PKG/usr/share/pixmaps
|
||||
ln -s ../games/$SRCNAM/icon.xpm $PRGNAM.xpm
|
||||
)
|
||||
install -m0755 -o root -g root $CWD/maelstrom_addon_package.pl $PKG/usr/games
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
( cd $PKG/usr/share/pixmaps ; ln -s ../games/$SRCNAM/icon.xpm $PRGNAM.xpm )
|
||||
|
||||
mkdir -p $PKG/usr/man/man6
|
||||
gzip -9c $CWD/$SRCNAM.6 > $PKG/usr/man/man6/$SRCNAM.6.gz
|
||||
|
||||
( cd $PKG/usr/man/man6
|
||||
ln -s $SRCNAM.6.gz $PRGNAM.6.gz
|
||||
ln -s $SRCNAM.6.gz $SRCNAM-netd.6.gz
|
||||
)
|
||||
ln -s $SRCNAM.6.gz $SRCNAM-netd.6.gz )
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
make install_gamedocs target=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
# Why does `make install' install this?
|
||||
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Docs/Makefile
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Maelstrom
|
||||
Exec=Maelstrom
|
||||
Type=Application
|
||||
Icon=maelstrom
|
||||
GenericName=Maelstrom
|
||||
Categories=Game;Arcade;
|
||||
Categories=Game;ArcadeGame;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="maelstrom"
|
||||
VERSION="3.0.6"
|
||||
HOMEPAGE="http://www.devolution.com/~slouken/Maelstrom/"
|
||||
DOWNLOAD="http://www.devolution.com/~slouken/Maelstrom/src/Maelstrom-3.0.6.tar.gz"
|
||||
MD5SUM="4fbeb6070eebdf161bd156b083b8804e"
|
||||
HOMEPAGE="http://www.happypenguin.org/show?maelstrom"
|
||||
DOWNLOAD="http://mirrors.kernel.org/gentoo/distfiles/Maelstrom-3.0.6.tar.gz"
|
||||
MD5SUM="8aab0e75ca52808fd6777535ebb1f1c4"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in New Issue