mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
games/Domination: Added (World domination strategy game)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
29bd60633c
commit
8a248a0802
6 changed files with 94 additions and 0 deletions
52
games/Domination/Domination.SlackBuild
Normal file
52
games/Domination/Domination.SlackBuild
Normal 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}
|
8
games/Domination/Domination.desktop
Normal file
8
games/Domination/Domination.desktop
Normal 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;
|
10
games/Domination/Domination.info
Normal file
10
games/Domination/Domination.info
Normal 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
1
games/Domination/README
Normal file
|
@ -0,0 +1 @@
|
|||
Domination is a Java version of a well known strategy game.
|
4
games/Domination/doinst.sh
Normal file
4
games/Domination/doinst.sh
Normal 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
|
||||
|
19
games/Domination/slack-desc
Normal file
19
games/Domination/slack-desc
Normal 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:
|
Loading…
Reference in a new issue