diff options
author | root <root@rshg054.dnsready.net> | 2012-08-26 00:06:22 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-26 00:06:22 +0000 |
commit | ca0c70ec611689e1233665e7e8c0b1bb99415bc0 (patch) | |
tree | 439b447bff9aab3ded336caf0c5ae31c9197dabc /community/wesnoth | |
parent | ed5050e0ce34cfd42511b855ff7c57f46ad65fc5 (diff) |
Sun Aug 26 00:06:21 UTC 2012
Diffstat (limited to 'community/wesnoth')
-rw-r--r-- | community/wesnoth/PKGBUILD | 15 | ||||
-rw-r--r-- | community/wesnoth/wesnoth.install | 5 | ||||
-rw-r--r-- | community/wesnoth/wesnothd.service | 9 | ||||
-rw-r--r-- | community/wesnoth/wesnothd.tmpfiles.conf | 1 |
4 files changed, 24 insertions, 6 deletions
diff --git a/community/wesnoth/PKGBUILD b/community/wesnoth/PKGBUILD index 59f1044d1..fa7d64890 100644 --- a/community/wesnoth/PKGBUILD +++ b/community/wesnoth/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 74014 2012-07-18 01:09:28Z ibiru $ +# $Id: PKGBUILD 75447 2012-08-24 12:33:04Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: Jan de Groot <jgc@archlinux.org> # Contributor: Tobias Powalowski <tpowa@archlinux.org> @@ -7,7 +7,7 @@ pkgname=wesnoth pkgver=1.10.3 -pkgrel=2 +pkgrel=3 pkgdesc="A turn-based strategy game on a fantasy world" arch=('i686' 'x86_64') license=('GPL') @@ -17,12 +17,14 @@ makedepends=('boost' 'cmake') install=wesnoth.install options=(!emptydirs) source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 - wesnoth.tmpfiles.conf + wesnothd.tmpfiles.conf wesnothd.rc.d + wesnothd.service boost_foreach.patch) md5sums=('b25354c71d58f82c2c60cc12c6f09c36' - 'b8122f5054e3895c9c054e87460869dc' + '2d2fea6b3d86dfd589f5ad35a3be1f97' '85659b47d22dfdf4e4d046556973fc3e' + 'd1b6bf1d3dc05086ee6a370adff0ae4a' '07e78c6ece06ed10119fc57ebc16ea9d') build() { @@ -36,7 +38,7 @@ build() { -DENABLE_OMP=ON \ -DENABLE_TOOLS=ON \ -DMANDIR=share/man \ - -DFIFO_DIR=/var/run/wesnothd + -DFIFO_DIR=/run/wesnothd make } @@ -51,6 +53,7 @@ package() { rm -r $pkgdir/usr/share/pixmaps rm -r $pkgdir/usr/share/wesnoth - install -Dm644 "$srcdir/wesnoth.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnoth.conf" + install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf" + install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service" install -Dm755 "$srcdir/wesnothd.rc.d" "$pkgdir/etc/rc.d/wesnothd" } diff --git a/community/wesnoth/wesnoth.install b/community/wesnoth/wesnoth.install index 4f1e419ae..0b0b5b5eb 100644 --- a/community/wesnoth/wesnoth.install +++ b/community/wesnoth/wesnoth.install @@ -1,5 +1,6 @@ # arg 1: the new package version post_install() { + systemd-tmpfiles --create wesnothd.conf cat << EOF Note: ==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma" @@ -7,3 +8,7 @@ Note: ==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output. EOF } + +post_upgrade() { + post_install +} diff --git a/community/wesnoth/wesnothd.service b/community/wesnoth/wesnothd.service new file mode 100644 index 000000000..ab8352880 --- /dev/null +++ b/community/wesnoth/wesnothd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Wesnoth Server Daemon +After=network.target + +[Service] +ExecStart=/usr/bin/wesnothd + +[Install] +WantedBy=multi-user.target diff --git a/community/wesnoth/wesnothd.tmpfiles.conf b/community/wesnoth/wesnothd.tmpfiles.conf new file mode 100644 index 000000000..55c62449e --- /dev/null +++ b/community/wesnoth/wesnothd.tmpfiles.conf @@ -0,0 +1 @@ +d /run/wesnothd 0700 root root - |