diff --git a/srcpkgs/wesnoth/files/wesnothd/run b/srcpkgs/wesnoth/files/wesnothd/run new file mode 100644 index 00000000000..e32ddd006a4 --- /dev/null +++ b/srcpkgs/wesnoth/files/wesnothd/run @@ -0,0 +1,3 @@ +#!/bin/sh +mkdir -m0700 -p /run/wesnoth +exec wesnothd diff --git a/srcpkgs/wesnoth/template b/srcpkgs/wesnoth/template index df02645f589..474ac96938b 100644 --- a/srcpkgs/wesnoth/template +++ b/srcpkgs/wesnoth/template @@ -1,14 +1,21 @@ # Template file for 'wesnoth' pkgname=wesnoth version=1.12 -revision=0 +revision=1 +wrksrc="${pkgname}-${version}.0" build_style=cmake -hostmakedepends="cmake" -makedepends="SDL-devel SDL_image-devel SDL_net-devel SDL_ttf-devel SDL_mixer-devel pango-devel fontconfig-devel libvorbis-devel zlib-devel bzip2-devel boost-devel pkg-config" +configure_args="-DENABLE_OMP=1" +hostmakedepends="cmake pkg-config" +makedepends="libgomp-devel fribidi-devel SDL_image-devel SDL_net-devel SDL_ttf-devel SDL_mixer-devel pango-devel libvorbis-devel zlib-devel bzip2-devel boost-devel" +depends="desktop-file-utils" short_desc="Turn-based fantasy strategy game" maintainer="M Farkas-Dyck " license="GPL-2" homepage="https://wesnoth.org/" -distfiles="http://downloads.sourceforge.net/project/wesnoth/wesnoth-${version}/wesnoth-${version}/wesnoth-${version}.tar.bz2" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=9e2b15cf6196ae7059fc48b5483aa6973473688602958dd64211b1775b513e0a -wrksrc=wesnoth-${version}.0 + +post_install() { + # runit service + vsv wesnothd +}