Update wesnoth to 1.12.0.

This commit is contained in:
Jeff Huang 2014-11-26 12:27:39 +00:00
parent 4f0f169b8f
commit e8fab31c6d
5 changed files with 57 additions and 8 deletions

View File

@ -4,22 +4,32 @@
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=wesnoth
pkgver=1.10.7
pkgrel=3
pkgver=1.12.0
_pkgver=1.12
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world."
arch=('i686' 'x86_64')
arch=('x86_64')
license=('GPL2')
url="http://www.wesnoth.org/"
depends=('boost-libs' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer'
'sdl_net' 'sdl_ttf')
'sdl_net' 'sdl_ttf' 'dbus' 'python2')
makedepends=('boost' 'cmake')
conflicts=('wesnoth-dev' 'wesnoth-svn')
categories=('games')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('3f460a494530d32aa5d5d0f19c95efbd')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}.tar.bz2
"wesnoth-boost.patch"
"wesnothd.tmpfiles.conf"
"wesnothd.service")
md5sums=('1fa1a43cb7f6f1664c36d7e4c1eedc01'
'9a4ad99ba66990bfc17cb12966b3823b'
'2d2fea6b3d86dfd589f5ad35a3be1f97'
'd1b6bf1d3dc05086ee6a370adff0ae4a')
build() {
cd $srcdir/$pkgname-$pkgver
cd ${srcdir}/${pkgname}-${pkgver}
# Try this again in a new version when they fix their linking to boost
patch -Np1 < ${srcdir}/wesnoth-boost.patch
mkdir -p build && cd build
cmake \
@ -33,6 +43,9 @@ build() {
}
package() {
cd $srcdir/$pkgname-$pkgver/build
cd ${srcdir}/${pkgname}-${pkgver}/build
make DESTDIR=$pkgdir install
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"
}

View File

@ -0,0 +1,12 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 43a20d7..61f36e0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -79,6 +79,7 @@ else(MSVC)
${Boost_IOSTREAMS_LIBRARY}
${Boost_REGEX_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
+ ${Boost_SYSTEM_LIBRARIES}
${LIBINTL_LIBRARIES}
)
endif(MSVC)

14
wesnoth/wesnoth.install Normal file
View File

@ -0,0 +1,14 @@
# 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"
==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth
==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output.
EOF
}
post_upgrade() {
post_install
}

9
wesnoth/wesnothd.service Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Wesnoth Server Daemon
After=network.target
[Service]
ExecStart=/usr/bin/wesnothd
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
d /run/wesnothd 0700 root root -