Date: Monday, May 4, 2015 @ 19:07:34 Author: svenstaro Revision: 132743
archrelease: copy trunk to community-staging-any Added: wesnoth-data/repos/community-staging-any/ wesnoth-data/repos/community-staging-any/PKGBUILD (from rev 132742, wesnoth-data/trunk/PKGBUILD) wesnoth-data/repos/community-staging-any/wesnoth-boost.patch (from rev 132742, wesnoth-data/trunk/wesnoth-boost.patch) ---------------------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ wesnoth-boost.patch | 12 ++++++++++++ 2 files changed, 62 insertions(+) Copied: wesnoth-data/repos/community-staging-any/PKGBUILD (from rev 132742, wesnoth-data/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2015-05-04 17:07:34 UTC (rev 132743) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan de Groot <j...@archlinux.org> +# Contributor: Tobias Powalowski <tp...@archlinux.org> +# Contributor: Jacobo Arvelo <unix4...@ya.com> +# Contributor: Douglas Soares de Andrade <doug...@archlinux.org> + +pkgname=wesnoth-data +pkgver=1.12.2 +pkgrel=2 +pkgdesc="A turn-based strategy game on a fantasy world (data files)" +arch=('any') +license=('GPL') +url="http://www.wesnoth.org/" +makedepends=('boost' 'cmake' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'sdl_net' 'lua52' 'pango' 'git') +options=(!emptydirs) +source=("git://github.com/wesnoth/wesnoth.git#tag=${pkgver}" + "wesnoth-boost.patch") +md5sums=('SKIP' + '9a4ad99ba66990bfc17cb12966b3823b') + +build() { + cd "${srcdir}/wesnoth" + + # Try this again in a new version when they fix their linking to boost + patch -Np1 < ${srcdir}/wesnoth-boost.patch + + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_OMP=ON \ + -DENABLE_TOOLS=ON \ + -DMANDIR=share/man \ + -DFIFO_DIR=/var/run/wesnothd + make +} + +package() { + cd "${srcdir}/wesnoth" + + cd build + make DESTDIR="$pkgdir" install + + rm -r $pkgdir/usr/bin + rm -r $pkgdir/usr/share/man + + for file in $(grep -l "python" $pkgdir/usr/share/wesnoth/data/tools/*); do + sed -i "s|#!/usr/bi#n/env python|#!/usr/bin/env python2|" $file; + done +} Copied: wesnoth-data/repos/community-staging-any/wesnoth-boost.patch (from rev 132742, wesnoth-data/trunk/wesnoth-boost.patch) =================================================================== --- community-staging-any/wesnoth-boost.patch (rev 0) +++ community-staging-any/wesnoth-boost.patch 2015-05-04 17:07:34 UTC (rev 132743) @@ -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)