From 037704262b4171f4d8d4c1660deacd49d98314b5 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 8 Aug 2020 17:56:19 +0000 Subject: [PATCH] community/mame to 0.223-1 --- community/mame/PKGBUILD | 16 ++++++++++++---- community/mame/mame.desktop | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/community/mame/PKGBUILD b/community/mame/PKGBUILD index e92e49620..4886c60e5 100644 --- a/community/mame/PKGBUILD +++ b/community/mame/PKGBUILD @@ -9,21 +9,21 @@ highmem=1 pkgname=mame -pkgver=0.222 +pkgver=0.223 pkgrel=1 pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support." url="https://mamedev.org/" license=(GPL2) arch=(x86_64) -depends=(sdl2_ttf qt5-base lua libutf8proc pugixml portmidi portaudio flac) +depends=(sdl2_ttf qt5-base lua53 libutf8proc pugixml portmidi portaudio flac) makedepends=(nasm python asio rapidjson glm libxinerama) conflicts=(sdlmame) replaces=(sdlmame) source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" mame.sh mame.desktop mame.svg) -sha256sums=('295cfc8edd132f7175818ed7bcbefdf292ba74ff1e3595a97c0cd49145b4b721' +sha256sums=('331fe4190f642df8cf235d6bf5f336c3f6912a4c37f3135b8826825fd2021005' 'ee1c59bafc5e5441e99fa4c58108a3e18048e60672f34de865c8a5a976094dba' - '6beb883c8efed5b7466d43d0658b47c3e4a9928b5d0245ed56446b230e28306b' + '0e5e93f84673c2d17a1bf7a6b256cfa54ef89a086a828df19bc054c12776d821' '17c442c933d764175e4ce1de50a80c0c2ddd5d733caf09c3cd5e6ba697ac43f4') @@ -38,6 +38,14 @@ prepare() { build() { cd mame-mame${pkgver/./} + export CFLAGS+=" -I/usr/include/lua5.3/" + export CXXFLAGS+=" -I/usr/include/lua5.3/" + +# Hack to force linking to lua5.3 + mkdir lib + ln -s /usr/lib/liblua5.3.so lib/liblua.so + export LDFLAGS+=" -L${PWD}/lib" + make \ NOWERROR=1 \ OPTIMIZE=2 \ diff --git a/community/mame/mame.desktop b/community/mame/mame.desktop index 072ec470e..c3027899b 100644 --- a/community/mame/mame.desktop +++ b/community/mame/mame.desktop @@ -11,7 +11,7 @@ Comment=Play vintage arcade games using the MAME™ emulator Comment[ca]=Jugueu a jocs d'arcade antics emprant l'emulador MAME™ Comment[fr]=Jugueu a jocs d'arcade antics emprant l'emulador MAME™ Comment[it]=Gioca ai vecchi arcade con l'emulatore MAME™ -Exec=/usr/bin/mame +Exec=mame Icon=mame Terminal=false Type=Application