diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-12-04 14:32:45 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-12-04 14:32:45 +0100 |
commit | 03346d9676b006b2ba496a44d56f3efccc185d6a (patch) | |
tree | 3e6c51e16a4f6c2b64c5109af508539d54455d9a /extra/wesnoth | |
parent | 61c0d1ec341c4979f7722696d3b7e6a958f81b10 (diff) | |
parent | 851376cd7720e1f9b35e0a7c26bfd66399f0c4d3 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/gnash/PKGBUILD
community/python-pymongo/PKGBUILD
extra/boost/PKGBUILD
extra/liborigin2/PKGBUILD
extra/libpst/PKGBUILD
extra/lyx/PKGBUILD
extra/mkvtoolnix/PKGBUILD
multilib/wine/PKGBUILD
Diffstat (limited to 'extra/wesnoth')
-rw-r--r-- | extra/wesnoth/PKGBUILD | 35 | ||||
-rw-r--r-- | extra/wesnoth/wesnoth.tmpfiles.conf | 1 |
2 files changed, 26 insertions, 10 deletions
diff --git a/extra/wesnoth/PKGBUILD b/extra/wesnoth/PKGBUILD index 9a2ef8d08..ed809500d 100644 --- a/extra/wesnoth/PKGBUILD +++ b/extra/wesnoth/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 132797 2011-07-26 09:16:15Z ibiru $ +# $Id: PKGBUILD 144065 2011-12-02 20:54:51Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Tobias Powalowski <tpowa@archlinux.org> # Contributor: Jacobo Arvelo <unix4all@ya.com> @@ -6,7 +6,7 @@ pkgname=wesnoth pkgver=1.8.6 -pkgrel=2 +pkgrel=3 pkgdesc="A turn-based strategy game on a fantasy world" arch=('i686' 'x86_64' 'mips64el') license=('GPL') @@ -14,18 +14,33 @@ url="http://www.wesnoth.org/" depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data=${pkgver}" 'dbus-core') makedepends=('boost') install=wesnoth.install -source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2 +options=(!emptydirs) +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 wesnoth-libpng-1.4.0.patch - wesnoth-1.8.6-boost-foreach.patch) + wesnoth-1.8.6-boost-foreach.patch + wesnoth.tmpfiles.conf) md5sums=('f1c3179869b01b61e253e74aeb241034' 'ca7412ffc4682ef55ddf82d56b0e2f08' - 'dc414ab7e1334941548e9db6db9c2460') + 'dc414ab7e1334941548e9db6db9c2460' + 'b8122f5054e3895c9c054e87460869dc') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np1 -i "${srcdir}/wesnoth-libpng-1.4.0.patch" - patch -Np1 -i "${srcdir}/wesnoth-1.8.6-boost-foreach.patch" + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i "$srcdir/wesnoth-libpng-1.4.0.patch" + patch -Np1 -i "$srcdir/wesnoth-1.8.6-boost-foreach.patch" ./autogen.sh - ./configure --prefix=/usr --localstatedir=/var --enable-tools --enable-editor --enable-server - make DESTDIR="${pkgdir}" install-exec + ./configure --prefix=/usr --localstatedir=/var --enable-tools \ + --enable-editor --enable-server --with-fifodir=/run/wesnothd +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install-exec + install -dm755 "$pkgdir/usr/lib/tmpfiles.d/" + install -m644 "$srcdir/wesnoth.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnoth.conf" + + sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir/usr/bin/wesnoth_addon_manager" + sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir/usr/bin/wmlindent" + sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir/usr/bin/wmlscope" + sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" "$pkgdir/usr/bin/wmllint" } diff --git a/extra/wesnoth/wesnoth.tmpfiles.conf b/extra/wesnoth/wesnoth.tmpfiles.conf new file mode 100644 index 000000000..3ec0f6013 --- /dev/null +++ b/extra/wesnoth/wesnoth.tmpfiles.conf @@ -0,0 +1 @@ +D /run/wesnothd 0700 root root - |