[arch-commits] Commit in wesnoth/trunk (PKGBUILD wesnoth.tmpfiles.conf)

Ionut Biru ibiru at archlinux.org
Sun Nov 27 12:52:17 UTC 2011


    Date: Sunday, November 27, 2011 @ 07:52:17
  Author: ibiru
Revision: 143609

boost 1.48 rebuild
drop /var/run 

Added:
  wesnoth/trunk/wesnoth.tmpfiles.conf
Modified:
  wesnoth/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   33 ++++++++++++++++++++++++---------
 wesnoth.tmpfiles.conf |    1 +
 2 files changed, 25 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-27 12:08:26 UTC (rev 143608)
+++ PKGBUILD	2011-11-27 12:52:17 UTC (rev 143609)
@@ -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 @@
 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"
+}

Added: wesnoth.tmpfiles.conf
===================================================================
--- wesnoth.tmpfiles.conf	                        (rev 0)
+++ wesnoth.tmpfiles.conf	2011-11-27 12:52:17 UTC (rev 143609)
@@ -0,0 +1 @@
+D /run/wesnothd 0700 root root -




More information about the arch-commits mailing list