From 23e06d9d499f886c43d53fe6493e996cca6e2d15 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 22 Jan 2024 15:06:01 +0100 Subject: [PATCH] Add AnotherChance and My_Dystopian_Robot_Girlfriend --- y/AnotherChance/SlackBuild | 55 ++++++++++++++++ y/My_Dystopian_Robot_Girlfriend/SlackBuild | 73 ++++++++++++++++++++++ y/SummertimeSaga/SlackBuild | 4 +- y/What-a-Legend/SlackBuild | 4 +- 4 files changed, 132 insertions(+), 4 deletions(-) create mode 100755 y/AnotherChance/SlackBuild create mode 100755 y/My_Dystopian_Robot_Girlfriend/SlackBuild diff --git a/y/AnotherChance/SlackBuild b/y/AnotherChance/SlackBuild new file mode 100755 index 00000000..9d223728 --- /dev/null +++ b/y/AnotherChance/SlackBuild @@ -0,0 +1,55 @@ +#!/bin/bash + +CWD=$(pwd) +TAG=${TAG:-gwh} +OUTPUT=${OUTPUT:-/tmp} +TMP=/tmp/$TAG + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-v$(echo $PRGNAM-*.zip | grep -o "[0-9.]*" | head -n1)} +ARCH=${ARCH:-$(uname -m)} +BUILD=${BUILD:-1} + +PKG=$TMP/pkg-$PRGNAM + +rm -rf $PKG + +mkdir -p $TMP +cd $TMP + +mkdir -p $PKG/usr/games/ $PKG/opt/ +cd $PKG/opt/ +[ ! -e $CWD/$PRGNAM-$VERSION-pc.zip ] && exit 1 +unzip $CWD/$PRGNAM-$VERSION-pc.zip +mv $PRGNAM-$VERSION-pc $PRGNAM + +cd $PKG/usr/games/ +ln -s ../../opt/$PRGNAM/$PRGNAM.sh + +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +${PRGNAM}: ${PRGNAM} (NSFW game) +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: (You need to download the game and put the file $PRGNAM-vX.x.x-pc.zip +${PRGNAM}: and put it next to this script) +${PRGNAM}: +${PRGNAM}: https://linktr.ee/timewizardstudios +${PRGNAM}: +EOF + +cd $PKG +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}$TAG.txz diff --git a/y/My_Dystopian_Robot_Girlfriend/SlackBuild b/y/My_Dystopian_Robot_Girlfriend/SlackBuild new file mode 100755 index 00000000..cb0ff052 --- /dev/null +++ b/y/My_Dystopian_Robot_Girlfriend/SlackBuild @@ -0,0 +1,73 @@ +#!/bin/bash + +CWD=$(pwd) +TAG=${TAG:-gwh} +OUTPUT=${OUTPUT:-/tmp} +TMP=/tmp/$TAG + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(echo MDRG*.zip | grep -o "[0-9.]*" | head -n1)} +ARCH=${ARCH:-$(uname -m)} +BUILD=${BUILD:-11} + +PKG=$TMP/pkg-$PRGNAM + +[ ! -e $CWD/MDRG$VERSION\ -\ Linux.zip ] && exit 1 + +rm -rf $PKG + +mkdir -p $TMP +cd $TMP + +mkdir -p $PKG/opt/ +unzip -d $PKG/opt/ $CWD/MDRG$VERSION\ -\ Linux.zip +mv $PKG/opt/MDRG$VERSION\ -\ Linux $PKG/opt/$PRGNAM + +chmod +x $PKG/opt/$PRGNAM/My\ Dystopian\ Robot\ Girlfriend.x86_64 +mkdir -p $PKG/opt/$PRGNAM/My\ Dystopian\ Robot\ Girlfriend_Data/Saves/ +mkdir -p $PKG/opt/$PRGNAM/My\ Dystopian\ Robot\ Girlfriend_Data/Mods/ + +mkdir -p $PKG/usr/games/ +cat < $PKG/usr/games/$PRGNAM +#!/bin/bash + +cd /opt/$PRGNAM/ +./My\ Dystopian\ Robot\ Girlfriend.x86_64 +EOF +chmod +x $PKG/usr/games/$PRGNAM + +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# 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 ':'. + + |-----handy-ruler------------------------------------------------------| +${PRGNAM}: ${PRGNAM} (NSFW game) +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: +${PRGNAM}: (You need to download the game and put the file MDRGx.x.x\ -\ Linux.zip +${PRGNAM}: and put it next to this script) +${PRGNAM}: +${PRGNAM}: https://incontinentcell.itch.io/factorial-omega +EOF + +cd $PKG || exit 1 +chown -R root:root * + +chown -R root:games $PKG/opt/$PRGNAM/ +chmod -R g+w $PKG/opt/$PRGNAM/ +chmod g+w $PKG/opt/My_Dystopian_Robot_Girlfriend/ \ + $PKG/opt/My_Dystopian_Robot_Girlfriend/My\ Dystopian\ Robot\ Girlfriend_Data/Saves/ \ + $PKG/opt/My_Dystopian_Robot_Girlfriend/My\ Dystopian\ Robot\ Girlfriend_Data/Mods/ + +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}$TAG.txz diff --git a/y/SummertimeSaga/SlackBuild b/y/SummertimeSaga/SlackBuild index 3635df98..794216c1 100755 --- a/y/SummertimeSaga/SlackBuild +++ b/y/SummertimeSaga/SlackBuild @@ -44,8 +44,8 @@ ${PRGNAM}: ${PRGNAM}: ${PRGNAM}: ${PRGNAM}: -${PRGNAM}: -${PRGNAM}: +${PRGNAM}: (You need to download the game and put the file $PRGNAM-X-x-x-pc.zip +${PRGNAM}: and put it next to this script) ${PRGNAM}: ${PRGNAM}: https://summertimesaga.com ${PRGNAM}: diff --git a/y/What-a-Legend/SlackBuild b/y/What-a-Legend/SlackBuild index 6f3531b4..ddaba094 100755 --- a/y/What-a-Legend/SlackBuild +++ b/y/What-a-Legend/SlackBuild @@ -43,8 +43,8 @@ ${PRGNAM}: ${PRGNAM}: ${PRGNAM}: ${PRGNAM}: -${PRGNAM}: -${PRGNAM}: +${PRGNAM}: (You need to download the game and put the file $PRGNAM-X.x.x-pc.zip +${PRGNAM}: and put it next to this script) ${PRGNAM}: ${PRGNAM}: https://whatalegendgame.com ${PRGNAM}: