diff options
author | Leo C <leoc@gmx.com> | 2018-01-25 22:27:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-27 07:43:48 +0700 |
commit | 9185f156ec55fe86326a8e9669df31b982ef1709 (patch) | |
tree | 916909eac970f1cf8cc99c3c2bd95158544fc1ae /desktop | |
parent | 84ed8708fd06cd5b7e35430d4b891ecd1e7abb65 (diff) |
desktop/dbgl: Added (a Java frontend for DOSBox).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/dbgl/README | 9 | ||||
-rw-r--r-- | desktop/dbgl/dbgl.SlackBuild | 108 | ||||
-rw-r--r-- | desktop/dbgl/dbgl.info | 10 | ||||
-rw-r--r-- | desktop/dbgl/doinst.sh | 3 | ||||
-rw-r--r-- | desktop/dbgl/slack-desc | 19 |
5 files changed, 149 insertions, 0 deletions
diff --git a/desktop/dbgl/README b/desktop/dbgl/README new file mode 100644 index 0000000000000..60db97939923b --- /dev/null +++ b/desktop/dbgl/README @@ -0,0 +1,9 @@ +DBGL serves as a frontend / Graphical User Interface to DOSBox +(configuration). It tries to make creating DOSBox configuration files +a little easier by offering a (relatively) simple interface, some +shortcuts and a little bit of intelligence (DOSBox behavior). +Once your DOS games are configured in DBGL, its very easy to setup or +start them, or alter their configuration or associated DOSBox version. + +Note: this works with both 'dosbox' and 'dosbox-dev' packages available + at SBo, at least one of them must be installed. diff --git a/desktop/dbgl/dbgl.SlackBuild b/desktop/dbgl/dbgl.SlackBuild new file mode 100644 index 0000000000000..b61b93fb178e0 --- /dev/null +++ b/desktop/dbgl/dbgl.SlackBuild @@ -0,0 +1,108 @@ +#!/bin/sh + +# Slackware build script for dbgl + +# Copyright 2018 Leonardo Citrolo, Italy +# 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=dbgl +VERSION=${VERSION:-0.82} +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} + +case "$ARCH" in + i?86) ;; + x86_64) ;; + *) echo "$ARCH architecture is not supported"; exit 1 ;; +esac + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM${VERSION//./}_generic.tar.gz +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/share/{$PRGNAM,applications} \ + $PKG/usr/bin +cp -a lib templates xsl $PRGNAM $PRGNAM.jar $PRGNAM.png \ + $PKG/usr/share/$PRGNAM + +# Remove unnecessary Arch-related stuff +if [ "$ARCH" = "x86_64" ]; then + rm -f $PKG/usr/share/$PRGNAM/lib/swtlin32.jar +else + rm -f $PKG/usr/share/$PRGNAM/lib/swtlin64.jar +fi + +# Create destop entry +cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF +[Desktop Entry] +Type=Application +Name=DBGL +GenericName=DOSBox Game Launcher +Comment=DOSBox Game Launcher +Icon=/usr/share/$PRGNAM/$PRGNAM.png +Exec=$PRGNAM +Path=/usr/share/$PRGNAM +Categories=Game; +EOF + +# Create launcher +cat > $PKG/usr/bin/$PRGNAM << EOF +#!/bin/sh + +/usr/share/$PRGNAM/$PRGNAM + +EOF +chmod 755 $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING $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} diff --git a/desktop/dbgl/dbgl.info b/desktop/dbgl/dbgl.info new file mode 100644 index 0000000000000..2462c70aefb0f --- /dev/null +++ b/desktop/dbgl/dbgl.info @@ -0,0 +1,10 @@ +PRGNAM="dbgl" +VERSION="0.82" +HOMEPAGE="http://members.quicknet.nl/blankendaalr/dbgl/" +DOWNLOAD="http://members.quicknet.nl/blankendaalr/dbgl/download/dbgl082_generic.tar.gz" +MD5SUM="70a9ab95e48687f0ec4593a750b7e755" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="dosbox openjdk" +MAINTAINER="Leo C." +EMAIL="leoc@gmx.com" diff --git a/desktop/dbgl/doinst.sh b/desktop/dbgl/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/desktop/dbgl/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/desktop/dbgl/slack-desc b/desktop/dbgl/slack-desc new file mode 100644 index 0000000000000..8a258c6e7bff4 --- /dev/null +++ b/desktop/dbgl/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------------------------------------------------------| +dbgl: dbgl (a Java frontend for DOSBox) +dbgl: +dbgl: DBGL serves as a frontend / Graphical User Interface to DOSBox +dbgl: (configuration). It tries to make creating DOSBox configuration files +dbgl: a little easier by offering a (relatively) simple interface, some +dbgl: shortcuts and a little bit of intelligence (DOSBox behavior). +dbgl: Once your DOS games are configured in DBGL, its very easy to setup or +dbgl: start them, or alter their configuration or associated DOSBox version. +dbgl: +dbgl: Homepage: http://members.quicknet.nl/blankendaalr/dbgl/ +dbgl: |