updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / mamepgui / PKGBUILD
blob58f2611b4ac622bd701d0f8723f4fd8a946c6cc2
1 # Maintainer: TryA <tryagainprod@gmail.com>
3 pkgname=mamepgui
4 pkgver=1.5.0
5 pkgrel=2
6 _date=20100305
7 pkgdesc="Frontend for SDLMAME/SDLMESS based on MAME Plus!"
8 arch=('i686' 'x86_64')
9 url="http://mameicons.free.fr/mame32p"
10 license=('custom:WTFPL')
11 depends=('qt' 'sdl')
12 optdepends=('sdlmame: port of MAME using SDL'
13             'sdlmess: port of MESS using SDL')
14 source=("http://mameicons.free.fr/mame32p/download/${pkgname}-${pkgver}.src-${_date}.zip"
15         'COPYING')
16 md5sums=('70903903311130e6d110305bd24dfdea'
17          '389a9e29629d1f05e115f8f05c283df5')
19 build() {
20   cd ${srcdir}
22   # Edit mamepgui.pro to disable static compilation and SDL 1.3 linking
23   sed -e '1,2d' -i mamepgui.pro
25   # Edit gamelist.cpp to disable joystick detection, which is a SDL 1.3 feature
26   sed -e '42d' -i gamelist.cpp
28   # Patches to fix compilation with Qt 4.7
29   sed -e 's/ipspath(NULL)/ipspath()/' -i ips.cpp
30   sed -e 's/void setGuiStyle(QString = NULL);/void setGuiStyle(QString);/' \
31       -e 's/void setBgPixmap(QString = NULL);/void setBgPixmap(QString);/' -i mamepgui_main.h
33   lrelease mamepgui.pro
34   qmake
35   make
38 package() {
39   # install license
40   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
41   
42   # install executable
43   install -Dm755 ${srcdir}/mamepgui ${pkgdir}/usr/bin/mamepgui