[conty] symlinks

This commit is contained in:
Gwenhael Le Moine 2023-03-06 10:42:39 +01:00
parent a832de0067
commit e349c02bfd
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -6,7 +6,7 @@ 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)}
BUILD=${BUILD:-1}
BUILD=${BUILD:-3}
TAG=${TAG:-gwh}
EDITION=${EDITION:-"_lite_dwarfs"} # "", "_lite", "_dwarfs", "_lite_dwarfs"
@ -26,7 +26,18 @@ rm -fr $PKG
mkdir -p $PKG$PREFIX/bin
cp $REPOSITORY/conty${EDITION}-${VERSION}.sh $PKG$PREFIX/bin/${PRGNAM}
chmod +x $PKG$PREFIX/bin/${PRGNAM}
cd $PKG$PREFIX/bin/
cat <<EOF > steam
#!/bin/bash
$PREFIX/bin/conty steam "\$@"
EOF
for prg in wine winetricks lutris playonlinux4; do
ln -s ${PRGNAM} $prg
done
chmod +x $PKG$PREFIX/bin/*
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true