[conty] symlinks
This commit is contained in:
parent
a832de0067
commit
e349c02bfd
1 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue