# Maintainer: Gustavo Alvarez # Contributor: Maxime Gauduin # Contributor: Harley Laue # Contributor: Hyacinthe Cartiaux # Contributor: Anton Shestakov # Contributor: Tiago Camargo # Contributor: robb_force pkgname=yabause-qt5-git pkgver=0.9.15.r3272.7e38821db pkgrel=1 pkgdesc="A Sega Saturn emulator. Qt5 port (GIT version)" arch=('x86_64') url='http://yabause.org' license=('GPL') depends=('libmini18n.so' 'openal' 'sdl2' 'libGLEW.so' 'freeglut' 'libxkbcommon-x11' 'qt5-multimedia' 'libsm' ) makedepends=('git' 'cmake' 'glu' 'doxygen' 'mini18n-git' 'glew' ) conflicts=('yabause-qt' 'yabause-qt5' 'yabause-gtk' 'yabause' ) provides=('yabause-qt5') source=('git+https://github.com/Yabause/yabause.git' 'rwx.patch' ) sha256sums=('SKIP' 'd29997d3249683081a2687f31e777f917093101d56815d22103aaaf22ac786b1') options=('debug') pkgver() { cd yabause/yabause _ver="$(cat CMakeLists.txt | grep -m3 "YAB_VERSION" | grep -o "[[:digit:]]*" | paste -sd'.')" echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } prepare() { cd yabause/yabause patch -p1 -i "${srcdir}/rwx.patch" # Install .svg icon instead .png cp src/logo.svg src/qt/resources/icons/yabause.svg sed 's|yabause.png|yabause.svg|g' -i src/qt/CMakeLists.txt } build() { cmake -S yabause/yabause -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DYAB_PORTS=qt \ -DYAB_NETWORK=ON \ -DYAB_OPTIMIZED_DMA=ON \ -DOpenGL_GL_PREFERENCE=GLVND cmake --build build } package() { DESTDIR="${pkgdir}" cmake --build build --target install }