2021-06-15 10:26:26 +02:00
|
|
|
|
#!/bin/bash
|
2021-01-06 14:15:33 +01:00
|
|
|
|
|
|
|
|
|
# variables
|
|
|
|
|
TAG=gwh
|
|
|
|
|
TMP=/tmp/$TAG
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
|
OUTPUT=/tmp
|
|
|
|
|
|
|
|
|
|
PRGNAM=$(basename $CWD)
|
|
|
|
|
PKG=$TMP/pkg-$PRGNAM
|
|
|
|
|
|
|
|
|
|
DOCS="LICENSE README.md"
|
|
|
|
|
|
|
|
|
|
ARCH=$(uname -m)
|
|
|
|
|
BUILD=1
|
|
|
|
|
|
|
|
|
|
PREFIX=/usr
|
|
|
|
|
|
|
|
|
|
SLCKFLAGS="-fPIC -O2"
|
|
|
|
|
|
2022-01-22 19:52:02 +01:00
|
|
|
|
REPOSITORY=/home/installs/SlackBuilds/_repositories/$PRGNAM
|
2021-01-06 14:15:33 +01:00
|
|
|
|
# nettoyage pr<70>alable
|
|
|
|
|
rm -fr $PKG $TMP/$PRGNAM
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG
|
|
|
|
|
|
|
|
|
|
# mise en place
|
|
|
|
|
[ ! -e $REPOSITORY ] && git clone https://github.com/Matoking/protontricks.git $REPOSITORY
|
2021-06-15 10:59:49 +02:00
|
|
|
|
cd $REPOSITORY
|
|
|
|
|
git pull --all
|
2021-01-06 14:15:33 +01:00
|
|
|
|
|
|
|
|
|
cp -R $REPOSITORY $TMP/$PRGNAM
|
|
|
|
|
cd $TMP/$PRGNAM
|
2023-03-22 16:56:02 +01:00
|
|
|
|
VERSION="$(git rev-list --count HEAD)_$(git log -1 --format=%h)"
|
2021-01-06 14:15:33 +01:00
|
|
|
|
|
|
|
|
|
# installation
|
|
|
|
|
python3 ./setup.py install --root=$PKG
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM
|
|
|
|
|
cp -R $DOCS $PKG/usr/doc/$PRGNAM
|
|
|
|
|
|
|
|
|
|
# correction
|
|
|
|
|
cd $PKG
|
|
|
|
|
chown -R root:root *
|
|
|
|
|
|
|
|
|
|
# embaumement
|
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
|
cat <<EOF > $PKG/install/slack-desc
|
|
|
|
|
$PRGNAM: $PRGNAM (A simple wrapper that does winetricks things for Proton enabled games)
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM: requires Winetricks.
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
$PRGNAM: https://github.com/Matoking/protontricks
|
|
|
|
|
$PRGNAM:
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
# empaquetage
|
|
|
|
|
cd $PKG
|
|
|
|
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
2023-08-16 12:23:26 +02:00
|
|
|
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|