# Maintainer: Mark Wagie # Contributor: Victor Fuentes # Contributor: Filipe Laíns (FFY00) # Contributor: Michael DeGuzis # Contributor: Frederik “Freso” S. Olesen # Contributor: Maxime Gauduin pkgname=lutris-git pkgver=0.5.17.r1.ge8bfc73bb pkgrel=1 pkgdesc='Open Gaming Platform' arch=('any') url="https://lutris.net" license=('GPL-3.0-or-later') depends=( 'cabextract' 'curl' 'glib2' 'gnome-desktop' 'gtk3' 'hicolor-icon-theme' 'mesa-utils' 'p7zip' 'psmisc' 'python-cairo' 'python-certifi' 'python-dbus' 'python-distro' 'python-gobject' 'python-lxml' 'python-moddb' 'python-pillow' 'python-requests' 'python-yaml' 'unzip' 'webkit2gtk-4.1' 'xdg-utils' 'xorg-xrandr' ) makedepends=('git' 'meson') checkdepends=( 'appstream-glib' # 'fluidsynth' # 'pciutils' # 'python-nose-cover3' # 'vulkan-tools' # 'xorg-server-xvfb' # 'xterm' ) optdepends=( 'fluidsynth' 'gamemode: Allows games to request a temporary set of optimisations' 'gamescope: Draw the game window isolated from your desktop' 'gvfs: GVFS backend' 'innoextract: Extract Inno Setup installers' 'lib32-gamemode: Allows games to request a temporary set of optimisations' 'lib32-glibc: for 32bit games support' "lib32-mangohud: Display the games' FPS + other information" 'lib32-vkd3d: DirectX 12 support' 'lib32-vulkan-icd-loader: Vulkan support' 'linux-steam-integration: start Steam with LSI' "mangohud: Display the games' FPS + other information" 'python-evdev: Controller support' 'python-pefile: Extract icons from Windows executables' 'python-protobuf: BattleNet integration' 'python-pypresence: Discord Rich Presence integration' 'vkd3d: DirectX 12 support' 'vulkan-icd-loader: Vulkan support' 'vulkan-tools: Vulkan support' 'wine: easiest way to get all the libraries missing from the Lutris runtime' 'winetricks: use system winetricks' 'xdg-desktop-portal-impl') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=('git+https://github.com/lutris/lutris.git') sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${pkgname%-git}" } build() { arch-meson "${pkgname%-git}" build meson compile -C build } check() { meson test -C build --print-errorlogs # cd "${pkgname%-git}" # xvfb-run nosetests \ # --cover-erase \ # --with-xunit \ # --xunit-file=nosetests.xml \ # --with-coverage \ # --cover-package=lutris \ # --cover-xml-file=coverage.xml } package() { meson install -C build --destdir "$pkgdir" }