diff options
author | root <root@rshg054.dnsready.net> | 2011-12-03 23:14:41 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-03 23:14:41 +0000 |
commit | 851376cd7720e1f9b35e0a7c26bfd66399f0c4d3 (patch) | |
tree | f8579d1c934aa5c28308372bedc321628555a424 /extra/wesnoth/PKGBUILD | |
parent | 8eed59114cbcf729b65f87d3f73530f6c8363d20 (diff) |
Sat Dec 3 23:14:41 UTC 2011
Diffstat (limited to 'extra/wesnoth/PKGBUILD')
-rw-r--r-- | extra/wesnoth/PKGBUILD | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/extra/wesnoth/PKGBUILD b/extra/wesnoth/PKGBUILD index bdac470ae..6631575b6 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') 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" } |