removed community/sdlmame

This commit is contained in:
Kevin Mihelich 2018-04-25 12:27:28 +00:00
parent 5a236d0291
commit a4019086ce
2 changed files with 0 additions and 133 deletions

View file

@ -1,77 +0,0 @@
# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: robb_force <robb_force@holybuffalo.net>
# Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - install 'mame' instead of 'mame64'
highmem=1
pkgname=sdlmame
pkgver=0.196
pkgrel=1
pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
url="http://mamedev.org/"
license=(GPL2)
arch=(x86_64)
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=('fc4436a23d7f2ef0b3c3f600c00745bc468541d0d29bcd3a1e0c599c5c02df7f'
'cecb5c7561f44d9b9721336d3af206a2c7e365840f1d09416e07cda9da1cda82')
build() {
cd mame-mame${pkgver/./}
make \
NOWERROR=1 \
OPTIMIZE=2 \
PYTHON_EXECUTABLE=/usr/bin/python2 \
TOOLS=1 \
ARCHOPTS=-flifetime-dse=1
}
package() {
cd mame-mame${pkgver/./}
# Install the sdlmame script
install -Dm755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
# 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
install -d "$pkgdir"/usr/share/$pkgname/{artwork,ctrlr,hash,keymaps,shader}
install -d "$pkgdir"/usr/share/man/man1
install -d "$pkgdir"/usr/share/man/man6
install -m644 src/osd/modules/opengl/shader/glsl*.*h "$pkgdir"/usr/share/$pkgname/shader/
install -m644 docs/man/*.1* "$pkgdir"/usr/share/man/man1/
install -m644 docs/man/*.6* "$pkgdir"/usr/share/man/man6/
cp -a artwork/* "$pkgdir"/usr/share/$pkgname/artwork/
install -m644 ctrlr/* "$pkgdir"/usr/share/$pkgname/ctrlr/
install -m644 keymaps/* "$pkgdir"/usr/share/$pkgname/keymaps/
install -m644 hash/* "$pkgdir"/usr/share/$pkgname/hash/
cp -a bgfx "$pkgdir"/usr/lib/$pkgname/bgfx
cp -a plugins "$pkgdir"/usr/share/$pkgname/plugins
cp -a language "$pkgdir"/usr/share/$pkgname/language
# Include the license
install -Dm644 docs/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# FS#28203
sed -i 's|KEYCODE_2_PAD|KEYCODE_2PAD|' "$pkgdir"/usr/share/sdlmame/ctrlr/*.cfg
sed -i 's|KEYCODE_4_PAD|KEYCODE_4PAD|' "$pkgdir"/usr/share/sdlmame/ctrlr/*.cfg
sed -i 's|KEYCODE_6_PAD|KEYCODE_6PAD|' "$pkgdir"/usr/share/sdlmame/ctrlr/*.cfg
sed -i 's|KEYCODE_8_PAD|KEYCODE_8PAD|' "$pkgdir"/usr/share/sdlmame/ctrlr/*.cfg
# documentation
install -dm0755 "$pkgdir"/usr/share/doc
cp -a docs "$pkgdir"/usr/share/doc/$pkgname
rm -r "$pkgdir"/usr/share/doc/$pkgname/man
}

View file

@ -1,56 +0,0 @@
#!/bin/sh
# Create a variable equal to $HOME that will be used later in the ini creation
home=('$HOME')
if [ "$1" != "" ] && [ "$1" = "--newini" ]; then
echo "Rebuilding the ini file at $HOME/.mame/mame.ini"
echo "Modify this file for permanent changes to your SDLMAME"
echo "options and paths before running SDLMAME again."
cd $HOME/.mame
if [ -e mame.ini ]; then
echo "Your old ini file has been renamed to mameini.bak"
mv mame.ini mameini.bak
fi
/usr/lib/sdlmame/sdlmame \
-artpath "$home/.mame/artwork;artwork" \
-ctrlrpath "$home/.mame/ctrlr;ctrlr" \
-inipath $home/.mame/ini \
-rompath $home/.mame/roms \
-samplepath $home/.mame/samples \
-cfg_directory $home/.mame/cfg \
-comment_directory $home/.mame/comments \
-diff_directory $home/.mame/diff \
-input_directory $home/.mame/inp \
-nvram_directory $home/.mame/nvram \
-snapshot_directory $home/.mame/snap \
-state_directory $home/.mame/sta \
-video opengl \
-createconfig
elif [ ! -e $HOME/.mame ]; then
echo "Running SDLMAME for the first time..."
echo "Creating an ini file for SDLMAME at $HOME/.mame/mame.ini"
echo "Modify this file for permanent changes to your SDLMAME"
echo "options and paths before running SDLMAME again."
mkdir $HOME/.mame
mkdir $HOME/.mame/{artwork,cfg,comments,ctrlr,diff,ini,inp,nvram,samples,snap,sta,roms}
cd $HOME/.mame
/usr/lib/sdlmame/sdlmame \
-artpath "$home/.mame/artwork;artwork" \
-ctrlrpath "$home/.mame/ctrlr;ctrlr" \
-inipath $home/.mame/ini \
-rompath $home/.mame/roms \
-samplepath $home/.mame/samples \
-cfg_directory $home/.mame/cfg \
-comment_directory $home/.mame/comments \
-diff_directory $home/.mame/diff \
-input_directory $home/.mame/inp \
-nvram_directory $home/.mame/nvram \
-snapshot_directory $home/.mame/snap \
-state_directory $home/.mame/sta \
-video opengl \
-createconfig
else
cd /usr/lib/sdlmame
./sdlmame "$@"
fi