community/sdlmame to 0.195-4

This commit is contained in:
Kevin Mihelich 2018-03-21 23:00:34 +00:00
parent 2fb484a98e
commit c30bb34111
3 changed files with 10 additions and 22 deletions

View file

@ -11,7 +11,7 @@ highmem=1
pkgname=sdlmame
pkgver=0.195
pkgrel=3
pkgrel=4
pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
url="http://mamedev.org/"
license=(GPL2)
@ -20,7 +20,7 @@ depends=(sdl2_ttf alsa-lib qt5-base)
makedepends=(nasm mesa python2 libxinerama)
source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" sdlmame.sh)
sha256sums=('b18d0e23ecf6b218c43a6770213c850b3c605ead9d29301de34101ed14c28a57'
'06e7f5dca2255a16b3336a6d2b9af8276a8d8c672635aed83e9e8f636db3cef7')
'cecb5c7561f44d9b9721336d3af206a2c7e365840f1d09416e07cda9da1cda82')
build() {
cd mame-mame${pkgver/./}
@ -38,23 +38,11 @@ package() {
# Install the sdlmame script
install -Dm755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
# Install the applications and the UI font in /usr/share
install -Dm755 mame "$pkgdir"/usr/lib/$pkgname/$pkgname || \
install -Dm755 mame64 "$pkgdir"/usr/lib/$pkgname/$pkgname
install -m755 chdman "$pkgdir"/usr/lib/$pkgname/chdman
install -m755 jedutil "$pkgdir"/usr/lib/$pkgname/jedutil
install -m755 regrep "$pkgdir"/usr/lib/$pkgname/regrep
install -m755 romcmp "$pkgdir"/usr/lib/$pkgname/romcmp
install -m755 src2html "$pkgdir"/usr/lib/$pkgname/src2html
install -m755 srcclean "$pkgdir"/usr/lib/$pkgname/srcclean
install -m755 ldverify "$pkgdir"/usr/lib/$pkgname/ldverify
install -m755 ldresample "$pkgdir"/usr/lib/$pkgname/ldresample
# ln binaries
install -dm755 "$pkgdir"/usr/share/$pkgname
for i in $pkgname chdman jedutil regrep romcmp src2html srcclean ldverify ldresample; do
ln -s /usr/lib/$pkgname/$i "$pkgdir"/usr/share/$pkgname/$i
# Install the binaries
install -Dm755 mame "$pkgdir"/usr/lib/sdlmame/sdlmame
for _i in castool chdman imgtool jedutil nltool nlwav pngcmp regrep romcmp src2html \
split srcclean ldverify ldresample; do
install -m755 $_i -t "$pkgdir"/usr/lib/sdlmame
done
# Install the extra bits

Binary file not shown.

View file

@ -12,7 +12,7 @@ if [ "$1" != "" ] && [ "$1" = "--newini" ]; then
echo "Your old ini file has been renamed to mameini.bak"
mv mame.ini mameini.bak
fi
/usr/share/sdlmame/sdlmame \
/usr/lib/sdlmame/sdlmame \
-artpath "$home/.mame/artwork;artwork" \
-ctrlrpath "$home/.mame/ctrlr;ctrlr" \
-inipath $home/.mame/ini \
@ -35,7 +35,7 @@ elif [ ! -e $HOME/.mame ]; then
mkdir $HOME/.mame
mkdir $HOME/.mame/{artwork,cfg,comments,ctrlr,diff,ini,inp,nvram,samples,snap,sta,roms}
cd $HOME/.mame
/usr/share/sdlmame/sdlmame \
/usr/lib/sdlmame/sdlmame \
-artpath "$home/.mame/artwork;artwork" \
-ctrlrpath "$home/.mame/ctrlr;ctrlr" \
-inipath $home/.mame/ini \
@ -51,6 +51,6 @@ elif [ ! -e $HOME/.mame ]; then
-video opengl \
-createconfig
else
cd /usr/share/sdlmame
cd /usr/lib/sdlmame
./sdlmame "$@"
fi