# Maintainer: Anton Karmanov # Contributor: MCMic pkgname=wyrmsun pkgver=5.0.1 pkgrel=1 pkgdesc="Real-time strategy game based on history, mythology and fiction" arch=('i686' 'x86_64') url="http://andrettin.github.io/" license=('GPL2') depends=( 'hicolor-icon-theme' 'qt5-location' 'qt5-multimedia' 'sdl_mixer' 'tolua++' ) makedepends=('boost' 'cmake' 'glu') source=("wyrmsun-${pkgver}.tar.gz::https://github.com/Andrettin/Wyrmsun/archive/v${pkgver}.tar.gz" "wyrmgus-${pkgver}.tar.gz::https://github.com/Andrettin/Wyrmgus/archive/v${pkgver}.tar.gz") md5sums=('f65843589884dfcdc3b7cd15ed3ee4b3' 'aca08095bc898463237604153c225050') build() { cd ${srcdir}/Wyrmgus-${pkgver} cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DOpenGL_GL_PREFERENCE=GLVND \ -DWITH_GEOJSON=OFF \ ; cmake --build . --target wyrmgus_main cd "${srcdir}/Wyrmsun-${pkgver}" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX='/usr/' \ -DBIN_DIR='bin/' \ ; cmake --build . } check() { cd ${srcdir}/Wyrmgus-${pkgver} cmake --build . --target wyrmgus_test ./wyrmgus_test } package() { cd ${srcdir}/Wyrmgus-${pkgver} mkdir -p "${pkgdir}/usr/bin/" cp wyrmgus "${pkgdir}/usr/bin/" cd ${srcdir}/Wyrmsun-${pkgver} cmake --install . --prefix "${pkgdir}/usr/" }