PKGBUILD for splitting hedgewars and hedgewars-server(and haskell deps with it)
In response to this issue, this PKGBUILD builds hedgewars and the "server" part separately with CMake and thus removes the haskell dependencies for the main game. This is achieved by inserting and appending lines to the CMakeLists.txt
for the server in $srcdir/gameServer
(as shown in PKGBUILD), making it able to be built separately. There was another option with cabal using the script inside gameServer
provided by the game devs that also allowed to do this but that was more trickier to set up with cabal-install
especially with haskell dependencies.
In contrast this method allows all the changes to be implemented and built using the PKGBUILD.
Both CMake operations have the "Release" option set and install_prefix
as /usr
, maintainer can remove or modify those if they deem it appropriate.
Built using a clean chroot and tested.
This is my first contribution to Arch as a merge request, I hope it's satisfactory :)