1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
8 pkgdesc='Qt based UNIX MAME frontend supporting SDLMAME'
9 url='https://qmc2.batcom-it.net/'
12 depends=(qt5-webengine qt5-svg qt5-multimedia qt5-xmlpatterns sdl2 minizip-ng)
14 source=(https://github.com/qmc2/qmc2-mame-fe/archive/v$pkgver/$pkgname-$pkgver.tar.gz
16 sha256sums=('0608a4e08bc451ae01856b85525f1dc767e01eb823e7e294c772876971e7609b'
17 'cd72449743a25fd759bb65d205dd2fd3ba0aaeab618efdae80dddc903e8148dd')
20 sed -e 's|PKGCONFIG += minizip|PKGCONFIG += minizip-ng|' -i $pkgname-mame-fe-$pkgver/qmc2.pro
21 patch -d $pkgname-mame-fe-$pkgver -p1 < webengine.patch # Port to qtwebengine
25 cd $pkgname-mame-fe-$pkgver
27 make PREFIX=/usr DATADIR=/usr/share SYSCONFDIR=/etc QTDIR=/usr QMAKE=qmake-qt5 \
28 SYSTEM_MINIZIP=1 SYSTEM_ZLIB=1
32 cd $pkgname-mame-fe-$pkgver
33 make PREFIX=/usr DATADIR=/usr/share SYSCONFDIR=/etc QTDIR=/usr QMAKE=qmake-qt5 DESTDIR="$pkgdir" install
34 install -Dm644 data/img/mame.png -t "$pkgdir"/usr/share/pixmaps