Building the 1.5.0 release may cause some compiler warnings with gcc, but should compile and work without problems anyway. If you don't want to see that nasty stuff - compile with clang instead, add these lines to PKGBUILD:
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p build && cd build
cmake -B. -H.. \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_RPATH='/usr/lib/vcmi' \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
-DCMAKE_SKIP_RPATH='FALSE' \
-DENABLE_TEST=OFF \
-DFORCE_BUNDLED_FL=OFF \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_CXX_COMPILER_LAUNCHER='ccache' \
-DCMAKE_C_COMPILER_LAUNCHER='ccache' \
-DENABLE_INNOEXTRACT='FALSE' \
-DCMAKE_CXX_COMPILER='clang++' \
-DCMAKE_C_COMPILER='clang' \
-Wno-dev
make
}
Pinned Comments
Gigas002 commented on 2024-05-29 15:08 (UTC)
PKGBUILD
tweaksIf you want to build with
clang
, add this part tocmake
flags:If you want to use bundled
fuzzylite
:If you want to use
innoextract
(system-wide installation won't work since vcmi has a temporary? fork ofinnoextract
for now):