# vim: set syn=sh: # Packager: Phill Watkins pkgname=mamepgui pkgver=1.5.0 pkgrel=1pw #arch=noarch source=("http://mameicons.free.fr/mame32p/download/mamepgui-1.5.0.src-20100305.zip") sourcetemplate=http://people.salixos.org/pwatk/packages/13.37/games/$pkgname docs=("*.txt") url=http://mameicons.free.fr/mame32p slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mamepgui (A Qt frontend for MAME)" "A Qt implementation of MameUI" ) build() { set -e cd $startdir/src # disable static builds sed -e '/build_static/s|^CONFIG|#CONFIG|' -i mamepgui.pro # disable SDL 1.3 linking sed -e '/build_sdl/s|^CONFIG|#CONFIG|' -i mamepgui.pro # disable SDL 1.3 joystick detection sed -e '/QList joysticks;/s|^|//|' -i gamelist.cpp # fixes for Qt 4.7 sed -e 's/^ipspath(NULL)/ipspath()/' -i ips.cpp sed -e 's/(QString = NULL)/(QString)/g' -i mamepgui_main.h lrelease mamepgui.pro qmake make install -Dm 0755 mamepgui $startdir/pkg/usr/games/mamepgui for icon in 16 22 24 32 48 ;do install -d $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps convert -resize ${icon}x${icon} res/mamep_256.png \ $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps/$pkgname.png done install -d $startdir/pkg/usr/share/applications cat <<- EOF > $startdir/pkg/usr/share/applications/mamepgui.desktop [Desktop Entry] Name=M+GUI GenericName=Multiple Arcade Machine Emulator Comment=MAME Frontend Exec=mamepgui Icon=mamepgui Type=Application StartupNotify=true Terminal=false Categories=Game;Emulator; EOF set +e }