2023-05-31 14:27:46 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
|
|
|
|
PRGNAM=$(basename $CWD)
|
|
|
|
GITHUB_REPO=Kron4ek/Conty
|
|
|
|
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | grep tag_name | grep -o "[0-9.]*")}
|
|
|
|
ARCH=${ARCH:-$(uname -m)}
|
2024-10-22 12:30:22 +02:00
|
|
|
BUILD=${BUILD:-6}
|
2023-05-31 14:27:46 +02:00
|
|
|
TAG=${TAG:-gwh}
|
|
|
|
|
|
|
|
EDITION=${EDITION:-"_lite_dwarfs"} # "", "_lite", "_dwarfs", "_lite_dwarfs"
|
|
|
|
|
|
|
|
TMP=${TMP:-/tmp/$TAG}
|
|
|
|
PKG=$TMP/pkg-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
PREFIX=/usr
|
|
|
|
|
2024-11-18 09:55:36 +01:00
|
|
|
REPOSITORY=${REPOSITORY:-/var/cache/SlackBuilds.gwh/$PRGNAM}
|
2023-05-31 14:27:46 +02:00
|
|
|
|
|
|
|
mkdir -p $REPOSITORY
|
|
|
|
|
|
|
|
[ ! -e $REPOSITORY/conty${EDITION}-${VERSION}.sh ] && wget -c https://github.com/${GITHUB_REPO}/releases/download/${VERSION}/conty${EDITION}.sh -O $REPOSITORY/conty${EDITION}-${VERSION}.sh
|
|
|
|
|
|
|
|
rm -fr $PKG
|
|
|
|
|
|
|
|
mkdir -p $PKG$PREFIX/bin
|
2023-07-31 14:28:13 +02:00
|
|
|
cp $REPOSITORY/conty${EDITION}-${VERSION}.sh $PKG$PREFIX/bin/conty
|
2023-05-31 14:27:46 +02:00
|
|
|
|
|
|
|
cd $PKG$PREFIX/bin/
|
|
|
|
cat <<EOF > steam
|
|
|
|
#!/bin/bash
|
|
|
|
|
2024-10-22 12:30:22 +02:00
|
|
|
# https://github.com/ValveSoftware/steam-for-linux/issues/11358
|
|
|
|
unset SDL_VIDEODRIVER
|
|
|
|
|
2023-05-31 14:27:46 +02:00
|
|
|
$PREFIX/bin/conty steam "\$@"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
mkdir -p $PKG$PREFIX/share/applications/
|
|
|
|
cat <<EOF > $PKG$PREFIX/share/applications/steam.desktop
|
|
|
|
[Desktop Entry]
|
|
|
|
Encoding=UTF-8
|
|
|
|
Version=1.0
|
|
|
|
Type=Application
|
|
|
|
Terminal=false
|
|
|
|
Exec=$PREFIX/bin/steam
|
|
|
|
Name=Steam
|
|
|
|
EOF
|
|
|
|
|
2024-04-15 14:20:19 +02:00
|
|
|
for prg in lutris playonlinux4; do
|
2023-07-31 14:28:13 +02:00
|
|
|
ln -s conty $prg
|
2023-05-31 14:27:46 +02:00
|
|
|
cat <<EOF > $PKG$PREFIX/share/applications/$prg.desktop
|
|
|
|
[Desktop Entry]
|
|
|
|
Encoding=UTF-8
|
|
|
|
Version=1.0
|
|
|
|
Type=Application
|
|
|
|
Terminal=false
|
|
|
|
Exec=$PREFIX/bin/$prg
|
|
|
|
Name=$prg
|
|
|
|
EOF
|
|
|
|
done
|
|
|
|
|
|
|
|
chmod +x $PKG$PREFIX/bin/*
|
|
|
|
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat <<EOF > $PKG/install/slack-desc
|
|
|
|
|-----handy-ruler--------------------------------------------------------|
|
|
|
|
$PRGNAM: $PRGNAM (Easy to use non-root container packed into a single executable)
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: a portable Arch Linux distro packed into a single executable that can
|
|
|
|
$PRGNAM: be used to run any applications
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: https://github.com/${GITHUB_REPO}
|
|
|
|
$PRGNAM:
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cd $PKG
|
2023-08-16 12:23:26 +02:00
|
|
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION${EDITION}-$ARCH-$BUILD$TAG.txz
|