diff options
-rw-r--r-- | .SRCINFO | 55 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 153 |
3 files changed, 212 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d84d265bac1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,55 @@ +pkgbase = qmc2-git + pkgdesc = Qt based UNIX MAME frontend supporting SDLMAME. (GIT version) + pkgver = 0.243.14.g112724d69 + pkgrel = 1 + url = https://qmc2.batcom-it.net + arch = x86_64 + license = GPL + makedepends = git + makedepends = rsync + makedepends = mesa + makedepends = qt5-declarative + makedepends = qt5-multimedia + makedepends = qt5-script + makedepends = qt5-xmlpatterns + makedepends = qt5-svg + makedepends = qt5-tools + makedepends = java-environment + makedepends = wget + options = debug + source = git+https://github.com/qmc2/qmc2-mame-fe.git + sha256sums = SKIP + +pkgname = qmc2-common-git + pkgdesc = Qt based UNIX MAME frontend. Core files, included qCHDman GUI. (GIT version) + depends = qt5-script + depends = java-environment + optdepends = qmc2-sdlmame-git: Frontend for SDLMAME + optdepends = qmc2-arcade-git: Arcade frontend for SDLMAME + provides = qmc2 + provides = qmc2-common-git=0.243.14.g112724d69 + conflicts = qmc2 + +pkgname = qmc2-sdlmame-git + pkgdesc = Qt based UNIX MAME frontend for SDLMAME. (GIT version) + depends = qmc2-common-git=0.243.14.g112724d69 + depends = qt5-multimedia + depends = qt5-webengine + depends = qt5-xmlpatterns + depends = libarchive + optdepends = sdlmame: A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support + provides = qmc2-sdlmame + conflicts = qmc2-sdlmame + conflicts = qmc2-sdlmame-svn + +pkgname = qmc2-arcade-git + pkgdesc = Qt based UNIX MAME Arcade frontend for SDLMAME. (GIT version) + depends = qmc2-common-git=0.243.14.g112724d69 + depends = sdl2 + depends = libarchive + depends = qt5-declarative + depends = minizip + optdepends = sdlmame: A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support + provides = qmc2-arcade + conflicts = qmc2-arcade + conflicts = qmc2-arcade-svn diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..acbaf9cf9303 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |