diff options
Diffstat (limited to 'games/lutris')
-rw-r--r-- | games/lutris/README | 12 | ||||
-rw-r--r-- | games/lutris/lutris.SlackBuild | 64 | ||||
-rw-r--r-- | games/lutris/lutris.info | 12 |
3 files changed, 68 insertions, 20 deletions
diff --git a/games/lutris/README b/games/lutris/README index 4662ec2916..0049285073 100644 --- a/games/lutris/README +++ b/games/lutris/README @@ -1,6 +1,10 @@ -Lutris is an open gaming platform for Linux. It helps you install and manage -your games in a unified interface. The goal is to support every game which -runs on Linux, from native to Windows games (via Wine) to emulators and -browser games. +Lutris is an open gaming platform for Linux. It helps you install and +manage your games in a unified interface. The goal is to support every +game which runs on Linux, from native to Windows games (via Wine) to +emulators and browser games. allegro and wine are optional dependencies for some of the runners. +Lutris can download and install specificly needed patched wine versions +or can use the system installed wine. + +moddb is optional dependency to reference ModDB in Lutris installers. diff --git a/games/lutris/lutris.SlackBuild b/games/lutris/lutris.SlackBuild index e64aaed674..da2c7c69d8 100644 --- a/games/lutris/lutris.SlackBuild +++ b/games/lutris/lutris.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for lutris # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org -# Copyright 2018 Brenton Earl <brent@exitstatusone.com> +# Copyright 2018, 2022 Brenton Earl <brent@exitstatusone.com> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,25 +23,50 @@ # with this program (most likely, a file named COPYING). If not, see # <https://www.gnu.org/licenses/>. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lutris -VERSION=${VERSION:-0.4.23} +VERSION=${VERSION:-0.5.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; arm*) ARCH=arm ;; + aarch64) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} -PKG=${PKG:-$TMP/package-$PRGNAM} +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="AUTHORS CHANGELOG LICENSE INSTALL.rst README.rst" +DOCS="AUTHORS LICENSE README.rst" + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi set -e @@ -49,8 +74,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -tar xvf $CWD/$PRGNAM\_$VERSION.tar.xz -cd $PRGNAM +tar xvf $CWD/$PRGNAM\-$VERSION.tar.?z +cd $PRGNAM\-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -58,11 +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 install --root $PKG +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 @@ -72,4 +116,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/lutris/lutris.info b/games/lutris/lutris.info index 904ceb7e32..15ea19f6a1 100644 --- a/games/lutris/lutris.info +++ b/games/lutris/lutris.info @@ -1,10 +1,10 @@ PRGNAM="lutris" -VERSION="0.4.23" +VERSION="0.5.13" HOMEPAGE="https://lutris.net/" -DOWNLOAD="http://lutris.net/releases/lutris_0.4.23.tar.xz" -MD5SUM="2300a2f6e617cf222aa47acd0b72436f" +DOWNLOAD="https://github.com/lutris/lutris/archive/refs/tags/v0.5.13/lutris-0.5.13.tar.gz" +MD5SUM="9acd07d4d130d4d250611af907aa3a40" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="pygobject3-python3 dbus-python3 python3-PyYAML pyxdg" -MAINTAINER="Brenton Earl" -EMAIL="brent@exitstatusone.com" +REQUIRES="python-magic webkit2gtk python3-lxml" +MAINTAINER="Ozan Türkyılmaz" +EMAIL="ozan.turkyilmaz@gmail.com" |