diff options
author | Lawrence González | 2022-05-10 13:05:35 -0400 |
---|---|---|
committer | Lawrence González | 2022-05-10 13:05:35 -0400 |
commit | 645c0ba7706993c7bd754a1b84be338d5ccb3a69 (patch) | |
tree | 461c9d7c5c798708953a10bb7e102bcddd9c703d /PKGBUILD | |
parent | 3ad82e71f5a372a334994100572f20542f558c08 (diff) | |
download | aur-645c0ba7706993c7bd754a1b84be338d5ccb3a69.tar.gz |
Added workaround for -Werror=format-security
"/etc/makepkg.conf" includes "-Werror=format-security" in CFLAGS and
and CXXFLAGS, this causes Wyrmgus (Wyrmsun engine) can't be compiled,
so I added an option that negates that flag, but this is only a
workaround while we wait for upstream to fix the incompatibility with
the flag (if they want).
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -1,20 +1,22 @@ # Maintainer: Anton Karmanov <a.karmanov@inventati.org> +# Maintainer: GalaxyLJGD <pentestian [AT] airmail [DOT] cc> # Contributor: MCMic <come@chilliet.eu> pkgname=wyrmsun pkgver=5.3.5 -pkgrel=1 +pkgrel=2 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++' -) +depends=('hicolor-icon-theme' + 'qt5-graphicaleffects' + 'qt5-location' + 'qt5-multimedia' + 'qt5-quickcontrols' + 'qt5-quickcontrols2' + 'sdl2_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") @@ -24,18 +26,20 @@ md5sums=('f519b26169499e52517196b24813d2ac' build() { cd "${srcdir}/Wyrmgus-${pkgver}" cmake . \ - -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=None \ -DOpenGL_GL_PREFERENCE=GLVND \ -DWITH_GEOJSON=OFF \ - ; + -DCMAKE_C_FLAGS="$CFLAGS -Wno-error=format-security -DNDEBUG" \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=format-security -DNDEBUG" \ + -Wno-dev cmake --build . --target wyrmgus_main cd "${srcdir}/Wyrmsun-${pkgver}" cmake . \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX='/usr/' \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX='/usr' \ -DBIN_DIR='bin/' \ - ; + -Wno-dev cmake --build . } |