add 2 games
This commit is contained in:
parent
d5fd012b32
commit
030f0352e6
2 changed files with 111 additions and 0 deletions
56
y/SummertimeSaga/SlackBuild
Executable file
56
y/SummertimeSaga/SlackBuild
Executable file
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TAG=${TAG:-gwh}
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
VERSION=${VERSION:-$(echo $PRGNAM-*.zip | grep -o "[0-9-]*" | sed 's|^-||' | sed 's|-$||' | tr - .)}
|
||||||
|
ORIG_VERSION=$(echo $VERSION | tr . -)
|
||||||
|
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-$ORIG_VERSION-pc.zip ] && exit 1
|
||||||
|
unzip $CWD/$PRGNAM-$ORIG_VERSION-pc.zip
|
||||||
|
mv $PRGNAM-$ORIG_VERSION-pc $PRGNAM
|
||||||
|
|
||||||
|
cd $PKG/usr/games/
|
||||||
|
ln -s ../../opt/$PRGNAM/$PRGNAM.sh
|
||||||
|
|
||||||
|
mkdir -p $PKG/install
|
||||||
|
|
||||||
|
cat <<EOF > $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}:
|
||||||
|
${PRGNAM}:
|
||||||
|
${PRGNAM}: https://summertimesaga.com
|
||||||
|
${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
|
55
y/What-a-Legend/SlackBuild
Executable file
55
y/What-a-Legend/SlackBuild
Executable file
|
@ -0,0 +1,55 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TAG=${TAG:-gwh}
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
VERSION=${VERSION:-$(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 <<EOF > $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}:
|
||||||
|
${PRGNAM}:
|
||||||
|
${PRGNAM}: https://whatalegendgame.com
|
||||||
|
${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
|
Loading…
Reference in a new issue