games/lutris: Updated to 0.5.10

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ozan Türkyılmaz 2022-04-16 16:58:41 +03:00 committed by Willy Sudiarto Raharjo
parent 1fadfddbc9
commit d7c8442d96
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 7 deletions

View file

@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lutris
VERSION=${VERSION:-0.5.9.1}
VERSION=${VERSION:-0.5.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -49,7 +49,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS LICENSE INSTALL.rst README.rst"
DOCS="AUTHORS LICENSE README.rst"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@ -83,12 +83,30 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py build
python3 setup.py install --root="$PKG" --optimize=1 --skip-build
mkdir -p build
cd build
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson .. \
--buildtype=release \
--infodir=/usr/info \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
--prefix=/usr \
--sysconfdir=/etc \
-Derrorlogs=false \
-Dstrip=true
"${NINJA:=ninja}"
DESTDIR=$PKG $NINJA install
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="lutris"
VERSION="0.5.9.1"
VERSION="0.5.10"
HOMEPAGE="https://lutris.net/"
DOWNLOAD="https://github.com/lutris/lutris/archive/refs/tags/v0.5.9.1/lutris-0.5.9.1.tar.gz"
MD5SUM="948e18e95750ca0f0af120ea86efe1f6"
DOWNLOAD="https://github.com/lutris/lutris/archive/refs/tags/v0.5.10/lutris-0.5.10.tar.gz"
MD5SUM="550e4269edfcbdfb4899b06499a470b7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python-magic gnome-desktop webkit2gtk lxml"