From 2379cbeb3752b22413cf616c87cc87b47e9f4e16 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Thu, 30 May 2019 15:42:11 +0700 Subject: games/VASSAL: Added (engine for board and card games). Signed-off-by: Willy Sudiarto Raharjo --- games/VASSAL/README | 3 ++ games/VASSAL/VASSAL | 3 ++ games/VASSAL/VASSAL.SlackBuild | 96 +++++++++++++++++++++++++++++++++++ games/VASSAL/VASSAL.desktop | 9 ++++ games/VASSAL/VASSAL.info | 10 ++++ games/VASSAL/VASSAL.svg | 111 +++++++++++++++++++++++++++++++++++++++++ games/VASSAL/doinst.sh | 3 ++ games/VASSAL/slack-desc | 19 +++++++ 8 files changed, 254 insertions(+) create mode 100644 games/VASSAL/README create mode 100644 games/VASSAL/VASSAL create mode 100644 games/VASSAL/VASSAL.SlackBuild create mode 100644 games/VASSAL/VASSAL.desktop create mode 100644 games/VASSAL/VASSAL.info create mode 100644 games/VASSAL/VASSAL.svg create mode 100644 games/VASSAL/doinst.sh create mode 100644 games/VASSAL/slack-desc (limited to 'games/VASSAL') diff --git a/games/VASSAL/README b/games/VASSAL/README new file mode 100644 index 000000000000..1a71ca5c1e9c --- /dev/null +++ b/games/VASSAL/README @@ -0,0 +1,3 @@ +VASSAL is a game engine for building and playing online adaptations of board +games and card games. Play live on the Internet or by email. VASSAL runs on all +platforms, and is free, open-source software. diff --git a/games/VASSAL/VASSAL b/games/VASSAL/VASSAL new file mode 100644 index 000000000000..2f833e339958 --- /dev/null +++ b/games/VASSAL/VASSAL @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/games/VASSAL +./VASSAL.sh diff --git a/games/VASSAL/VASSAL.SlackBuild b/games/VASSAL/VASSAL.SlackBuild new file mode 100644 index 000000000000..8fabf966a79f --- /dev/null +++ b/games/VASSAL/VASSAL.SlackBuild @@ -0,0 +1,96 @@ +#!/bin/sh + +# Slackware build script for VASSAL + +# Copyright 2019 Benjamin Trigona-Harant +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=VASSAL +VERSION=${VERSION:-3.2.17} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-linux.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/usr/bin $PKG/usr/share/games/$PRGNAM +cp -rf lib $PKG/usr/share/games/$PRGNAM + +install -D -m0755 $PRGNAM.sh $PKG/usr/share/games/$PRGNAM/$PRGNAM.sh +install -D -m0755 $CWD/VASSAL $PKG/usr/bin + +mkdir -p $PKG/usr/share/applications +install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/share/pixmaps +install -m644 -D $CWD/$PRGNAM.svg $PKG/usr/share/pixmaps/$PRGNAM.svg + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES LICENSE README doc \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +ln -s /usr/doc/$PRGNAM-$VERSION/doc $PKG/usr/share/games/$PRGNAM/doc + +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} diff --git a/games/VASSAL/VASSAL.desktop b/games/VASSAL/VASSAL.desktop new file mode 100644 index 000000000000..54e024195605 --- /dev/null +++ b/games/VASSAL/VASSAL.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=VASSAL +Comment=Engine for board and card games +Exec=VASSAL +Icon=VASSAL +Terminal=false +Type=Application +Categories=Game +GenericName=Board and card game engine diff --git a/games/VASSAL/VASSAL.info b/games/VASSAL/VASSAL.info new file mode 100644 index 000000000000..985ec4719646 --- /dev/null +++ b/games/VASSAL/VASSAL.info @@ -0,0 +1,10 @@ +PRGNAM="VASSAL" +VERSION="3.2.17" +HOMEPAGE="http://www.vassalengine.org/" +DOWNLOAD="https://downloads.sourceforge.net/vassalengine/VASSAL-3.2.17-linux.tar.bz2" +MD5SUM="dc43c18cafcf36cfbc1a0d9eb733d8d1" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jdk" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" diff --git a/games/VASSAL/VASSAL.svg b/games/VASSAL/VASSAL.svg new file mode 100644 index 000000000000..e2587ced2b00 --- /dev/null +++ b/games/VASSAL/VASSAL.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/games/VASSAL/doinst.sh b/games/VASSAL/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /dev/null +++ b/games/VASSAL/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/games/VASSAL/slack-desc b/games/VASSAL/slack-desc new file mode 100644 index 000000000000..8454296b8d34 --- /dev/null +++ b/games/VASSAL/slack-desc @@ -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------------------------------------------------------| +VASSAL: VASSAL (engine for board and card games) +VASSAL: +VASSAL: VASSAL is a game engine for building and playing online adaptations +VASSAL: of board games and card games. Play live on the Internet or by email. +VASSAL: VASSAL runs on all platforms, and is free, open-source software. +VASSAL: +VASSAL: +VASSAL: +VASSAL: +VASSAL: +VASSAL: -- cgit v1.2.3