archrelease: copy trunk to community-any
[ArchLinux/community.git] / qmc2 / repos / community-x86_64 / PKGBUILD
blob12fd6a348d908971fd02a5ee74f45f522697413a
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
5 pkgname=qmc2
6 pkgver=0.243
7 pkgrel=2
8 pkgdesc='Qt based UNIX MAME frontend supporting SDLMAME'
9 url='https://qmc2.batcom-it.net/'
10 license=(GPL)
11 arch=(x86_64)
12 depends=(qt5-webengine qt5-svg qt5-multimedia qt5-xmlpatterns sdl2 minizip-ng)
13 makedepends=(rsync)
14 source=(https://github.com/qmc2/qmc2-mame-fe/archive/v$pkgver/$pkgname-$pkgver.tar.gz
15         webengine.patch)
16 sha256sums=('0608a4e08bc451ae01856b85525f1dc767e01eb823e7e294c772876971e7609b'
17             'cd72449743a25fd759bb65d205dd2fd3ba0aaeab618efdae80dddc903e8148dd')
19 prepare() {
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
24 build() {
25   cd $pkgname-mame-fe-$pkgver
26   export CTIME=0
27   make PREFIX=/usr DATADIR=/usr/share SYSCONFDIR=/etc QTDIR=/usr QMAKE=qmake-qt5 \
28     SYSTEM_MINIZIP=1 SYSTEM_ZLIB=1
31 package() {
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