mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/mame to 0.209-1
This commit is contained in:
parent
23081d0060
commit
43511bac5e
2 changed files with 12 additions and 9 deletions
|
@ -9,7 +9,7 @@
|
||||||
highmem=1
|
highmem=1
|
||||||
|
|
||||||
pkgname=mame
|
pkgname=mame
|
||||||
pkgver=0.208
|
pkgver=0.209
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
|
pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
|
||||||
url="https://mamedev.org/"
|
url="https://mamedev.org/"
|
||||||
|
@ -20,8 +20,8 @@ makedepends=(nasm python asio rapidjson glm libxinerama)
|
||||||
conflicts=(sdlmame)
|
conflicts=(sdlmame)
|
||||||
replaces=(sdlmame)
|
replaces=(sdlmame)
|
||||||
source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" mame.sh)
|
source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" mame.sh)
|
||||||
sha256sums=('d02dba8e144ac11878226ef48aa8e4d30a33d77dd72210f84e9803908c70e8b2'
|
sha256sums=('9442e88bd87cfe407eb093a2ecb42a3850cabe31cd52c4efdef1bf7f584a8eab'
|
||||||
'da37e17b53759f049234af393bc69c29e1e4aab58df44a9384e7f7160a49db29')
|
'ee1c59bafc5e5441e99fa4c58108a3e18048e60672f34de865c8a5a976094dba')
|
||||||
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mamelib=/usr/lib/mame/
|
mame=/usr/lib/mame/mame
|
||||||
|
|
||||||
mame_first_run() {
|
mame_first_run() {
|
||||||
echo "Creating an ini file for MAME at $HOME/.mame/mame.ini"
|
echo "Creating an ini file for MAME at $HOME/.mame/mame.ini"
|
||||||
|
@ -17,8 +17,12 @@ mame_first_run() {
|
||||||
# strings verbatim into its configuration file, and expand the variables when
|
# strings verbatim into its configuration file, and expand the variables when
|
||||||
# it is run in future.
|
# it is run in future.
|
||||||
"$mame" \
|
"$mame" \
|
||||||
-artpath '$HOME/.mame/artwork;artwork' \
|
-artpath '$HOME/.mame/artwork;/usr/lib/mame/artwork' \
|
||||||
-ctrlrpath '$HOME/.mame/ctrlr;ctrlr' \
|
-bgfx_path '$HOME/.mame/bgfx;/usr/lib/mame/bgfx' \
|
||||||
|
-ctrlrpath '$HOME/.mame/ctrlr;/usr/lib/mame/ctrlr' \
|
||||||
|
-hashpath '$HOME/.mame/hash;/usr/lib/mame/hash' \
|
||||||
|
-languagepath '$HOME/.mame/language;/usr/lib/mame/language' \
|
||||||
|
-pluginspath '/usr/lib/mame/plugins' \
|
||||||
-inipath '$HOME/.mame/ini' \
|
-inipath '$HOME/.mame/ini' \
|
||||||
-rompath '$HOME/.mame/roms' \
|
-rompath '$HOME/.mame/roms' \
|
||||||
-samplepath '$HOME/.mame/samples' \
|
-samplepath '$HOME/.mame/samples' \
|
||||||
|
@ -42,11 +46,10 @@ elif ! [ -e ~/.mame ]; then
|
||||||
mkdir -- ~/.mame
|
mkdir -- ~/.mame
|
||||||
(
|
(
|
||||||
cd -- ~/.mame || exit
|
cd -- ~/.mame || exit
|
||||||
mkdir artwork cfg comments ctrlr diff ini inp nvram samples snap sta roms
|
mkdir artwork bgfx cfg comments ctrlr diff hash ini inp language nvram samples snap sta roms
|
||||||
|
|
||||||
mame_first_run
|
mame_first_run
|
||||||
) || exit
|
) || exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$mamelib"
|
exec "$mame" "$@"
|
||||||
exec ./mame "$@"
|
|
||||||
|
|
Loading…
Reference in a new issue