blob: acbaf9cf9303a9e673d3f11e56df9ef3ab83d872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgbase=qmc2-git
pkgname=('qmc2-common-git'
'qmc2-sdlmame-git'
'qmc2-arcade-git'
)
pkgver=0.243.14.g112724d69
pkgrel=1
pkgdesc="Qt based UNIX MAME frontend supporting SDLMAME. (GIT version)"
url='https://qmc2.batcom-it.net'
license=('GPL')
arch=('x86_64')
makedepends=('git'
'rsync'
'mesa'
'qt5-declarative'
'qt5-multimedia'
'qt5-script'
'qt5-xmlpatterns'
'qt5-svg'
'qt5-tools'
'java-environment'
'wget'
)
source=('git+https://github.com/qmc2/qmc2-mame-fe.git')
sha256sums=('SKIP')
options=('debug')
pkgver() {
cd qmc2-mame-fe
echo "$(git describe --long --tags | tr - . | tr -d v)"
}
_buildopts=('PREFIX=/usr'
'MAN_DIR=/usr/share/man'
'QMAKE=/usr/bin/qmake-qt5'
'LRELEASE=/usr/bin/lrelease-qt5'
'LUPDATE=/usr/bin/lupdate-qt5'
'JOYSTICK=1'
'SDL=2'
'LIBARCHIVE=1'
'WIP=0'
'CCACHE=0'
'SYSTEM_MINIZIP=1'
'SYSTEM_ZLIB=1'
'BROWSER_EXTRAS=0'
)
build() {
msg2 "Build QMC2"
make -C qmc2-mame-fe \
${_buildopts[@]} \
configure
LC_ALL=C make -C qmc2-mame-fe \
${_buildopts[@]} \
all arcade tools man
msg2 "build QMC2 Options Editor"
(cd qmc2-mame-fe/src/tools/qmc2_options_editor_java; sh build.sh)
}
package_qmc2-common-git() {
pkgdesc='Qt based UNIX MAME frontend. Core files, included qCHDman GUI. (GIT version)'
depends=('qt5-script'
'java-environment'
)
conflicts=('qmc2')
provides=('qmc2'
"qmc2-common-git=${pkgver}"
)
optdepends=('qmc2-sdlmame-git: Frontend for SDLMAME'
'qmc2-arcade-git: Arcade frontend for SDLMAME'
)
make -C qmc2-mame-fe \
${_buildopts[@]} \
DESTDIR="${pkgdir}" \
install tools-install arcade-install man-install
# Cleanup
rm -fr "${pkgdir}/usr/bin/"qmc2-{arcade,sdlmame}
rm -fr "${pkgdir}/usr/share/applications/"qmc2-{arcade,sdlmame}.desktop
pushd qmc2-mame-fe/src/tools/qmc2_options_editor_java &> /dev/null
find . -type f -exec install -Dm644 "{}" "${pkgdir}/usr/share/qmc2/qmc2_options_editor_java/{}" \;
cd "${pkgdir}/usr/share/qmc2/qmc2_options_editor_java"
rm -fr {build.sh,src}
sed -e '2icd "/usr/share/qmc2/qmc2_options_editor_java"' \
-e '9d' \
-e '15d' \
-i run.sh
chmod +x run.sh
popd &> /dev/null
ln -s /usr/share/qmc2/qmc2_options_editor_java/run.sh "${pkgdir}/usr/bin/qmc2_options_editor"
find "${pkgdir}/usr/share/man/man6" ! -type d ! -name "qchdman.6.gz" -a ! -name "qmc2-main-gui.6.gz" -a ! -name "qmc2.6.gz" -delete
}
package_qmc2-sdlmame-git() {
pkgdesc='Qt based UNIX MAME frontend for SDLMAME. (GIT version)'
depends=("qmc2-common-git=${pkgver}"
'qt5-multimedia'
'qt5-webengine'
'qt5-xmlpatterns'
'libarchive'
)
provides=('qmc2-sdlmame')
conflicts=('qmc2-sdlmame'
'qmc2-sdlmame-svn'
)
optdepends=('sdlmame: A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support')
make -C qmc2-mame-fe \
${_buildopts[@]} \
DESTDIR="${pkgdir}" \
install man-install
# Cleanup
rm -fr "${pkgdir}/usr/bin/"{qmc2,runonce}
rm -fr "${pkgdir}/etc"
rm -fr "${pkgdir}/usr/share/qmc2"
find "${pkgdir}/usr/share/man/man6" ! -type d ! -name "qmc2-sdlmame.6.gz" -delete
}
package_qmc2-arcade-git() {
pkgdesc='Qt based UNIX MAME Arcade frontend for SDLMAME. (GIT version)'
depends=("qmc2-common-git=${pkgver}"
'sdl2'
'libarchive'
'qt5-declarative'
'minizip'
)
optdepends=('sdlmame: A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support')
conflicts=('qmc2-arcade'
'qmc2-arcade-svn'
)
provides=('qmc2-arcade')
make -C qmc2-mame-fe \
${_buildopts[@]} \
DESTDIR="${pkgdir}" \
arcade-install man-install
# Cleanup
rm -fr "${pkgdir}/usr/bin/"{qmc2,runonce}
rm -fr "${pkgdir}/etc"
rm -fr "${pkgdir}/usr/share/qmc2"
find "${pkgdir}/usr/share/man/man6" ! -type d ! -name "qmc2-arcade.6.gz" -delete
}
|