games/Domination: Added (World domination strategy game)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Roberto Neri 2011-03-05 10:14:42 -03:00 committed by Niels Horn
parent 29bd60633c
commit 8a248a0802
6 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,52 @@
#!/bin/sh
# Slackware build script for Domination
# Written by Roberto Neri <rneri@libero.it>
PRGNAM=Domination
VERSION=${VERSION:-1.1.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
mkdir -p $PKG/usr/share
cd $PKG/usr/share
unzip $CWD/${PRGNAM}_${VERSION}.zip
cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
find . -name "*.sh" -exec chmod 755 {} \;
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > \
$PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a BugTrack.txt ChangeLog.txt ReadMe.txt commands.txt gpl.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Domination
Comment=Domination Game
Icon=/usr/share/Domination/resources/icon.png
Exec=/usr/share/Domination/run.sh
Path=/usr/share/Domination
Categories=Game;

View file

@ -0,0 +1,10 @@
PRGNAM="Domination"
VERSION="1.1.0.1"
HOMEPAGE="http://domination.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/domination/Domination_1.1.0.1.zip"
MD5SUM="a35801e05b7cca9427abc6f1d4361a11"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Roberto Neri"
EMAIL="rneri@libero.it"
APPROVED="Niels Horn"

1
games/Domination/README Normal file
View file

@ -0,0 +1 @@
Domination is a Java version of a well known strategy game.

View file

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
Domination: Domination (World domination strategy game)
Domination:
Domination: Domination is a Java version of a well known strategy game.
Domination:
Domination:
Domination:
Domination:
Domination:
Domination:
Domination: Homepage: http://domination.sourceforge.net
Domination: