aboutsummaryrefslogtreecommitdiff
path: root/games/yarntown/yarntown.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <orbea@riseup.net>2020-09-12 01:31:06 +0100
committerDave Woodfall <dave@slackbuilds.org>2020-09-12 01:31:06 +0100
commit17f42c109f1137fae347ee446846f19a514698f0 (patch)
treec54f41820a98affd5acbd66100dcdf9ab9ffef1f /games/yarntown/yarntown.SlackBuild
parentb6c94566fcef44315d3f3cf42e37f6e2dfad7b77 (diff)
games/yarntown: Added (2D homage to Bloodborne for solarus engine)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'games/yarntown/yarntown.SlackBuild')
-rw-r--r--games/yarntown/yarntown.SlackBuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/games/yarntown/yarntown.SlackBuild b/games/yarntown/yarntown.SlackBuild
new file mode 100644
index 0000000000000..da93cea13f29c
--- /dev/null
+++ b/games/yarntown/yarntown.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for Yarntown
+
+# Copyright 2020 Hunter Sezen California, USA
+# 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=yarntown
+VERSION=${VERSION:-1.0.6}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-v$VERSION
+tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz
+cd $PRGNAM-v$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 {} \;
+
+# Add an install script and desktop file.
+# https://gitlab.com/maxmraz/yarntown/-/merge_requests/4
+patch -p1 < $CWD/install.patch
+
+mkdir -p build
+(
+ cd build
+ ../install.sh install \
+ PREFIX=/usr \
+ BINDIR=games \
+ DATADIR=share/games \
+ DESTDIR="$PKG"
+
+ ../install.sh install-assets \
+ PREFIX=/usr \
+ DOCDIR=doc \
+ DESTDIR="$PKG"
+)
+
+mkdir -p $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}