1 # Maintainer: TryA <tryagainprod@gmail.com>
6 pkgdesc="Frontend for SDLMAME/SDLMESS based on MAME Plus!"
8 url="http://sourceforge.net/projects/mameplus"
9 license=('custom:WTFPL')
10 depends=('qt' 'quazip')
11 makedepends=('subversion')
12 conflicts=('mamepgui')
13 provides=('mamepgui=1.5.1')
14 optdepends=('sdlmame: port of MAME using SDL'
15 'sdlmess: port of MESS using SDL')
17 md5sums=('389a9e29629d1f05e115f8f05c283df5')
19 _svntrunk="https://mameplus.svn.sourceforge.net/svnroot/mameplus/trunk/mamepgui"
26 if [ -d ${_svnmod}/.svn ]; then
27 (cd ${_svnmod} && svn up -r ${pkgver})
29 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "${srcdir}/${_svnmod}-build"
36 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
37 cd "${srcdir}/${_svnmod}-build"
39 # disable static compilation and SDL 1.3 linking
40 sed -e 's|CONFIG += build_static|#CONFIG += build_static|' \
41 -e 's|CONFIG += build_sdl|#CONFIG += build_sdl|' \
42 -i common_settings.pri
44 # use included libraries instead of installed ones
45 sed -e 's|LIBS += -L./lib/$${OSDIR}|QMAKE_LIBDIR += ./lib/$${OSDIR}|' \
46 -e 's|TARGETDEPS +=|#TARGETDEPS +=|' \
47 -e 's|./lib/$${OSDIR}/libquazip.a|#./lib/$${OSDIR}/libquazip.a|' \
48 -e 's|./lib/$${OSDIR}/liblzma.a|#./lib/$${OSDIR}/liblzma.a|' \
51 # build included liblzma.a (system one is not compatible)
65 install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
68 install -Dm755 ${srcdir}/mamepgui-build/bin/mamepgui ${pkgdir}/usr/bin/mamepgui