[arch-commits] Commit in hedgewars/trunk (PKGBUILD)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon Jul 14 14:37:17 UTC 2014


    Date: Monday, July 14, 2014 @ 16:37:17
  Author: spupykin
Revision: 115717

Modified:
  hedgewars/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-14 13:57:22 UTC (rev 115716)
+++ PKGBUILD	2014-07-14 14:37:17 UTC (rev 115717)
@@ -3,7 +3,7 @@
 
 pkgname=hedgewars
 pkgver=0.9.20.5
-pkgrel=2
+pkgrel=3
 pkgdesc="turn based strategy, artillery, action and comedy game, featuring the
  antics of pink hedgehogs with attitude as they battle from the depths of hell
  to the depths of space."
@@ -28,25 +28,28 @@
          'eeb14d50df39063549ac5eca9dbc65d1'
          '84a85365cbbf7a1aabe4d0f37bd5f03f')
 
-build() {
+prepare() {
   cd $pkgname-src-*
-
   patch -Np1 -i ${srcdir}/fix-ghc-7.8-build-failure.diff
+  sed -i 's|\[ ! -a Hedgewars.app \]|\\[ ! -a Hedgewars.app \\]|' tools/CMakeLists.txt
+}
 
+build() {
+  cd $pkgname-src-*
+  mkdir -p $srcdir/bin
+  ln -sf /usr/bin/lrelease-qt4 $srcdir/bin/Qt4::lrelease
+  export PATH=$srcdir/bin:$PATH
   cmake \
 	-DCMAKE_BUILD_TYPE="Release" \
 	-DCMAKE_INSTALL_PREFIX=/usr \
 	-DDATA_INSTALL_DIR=/usr/share/hedgewars \
 	-DNOSERVER=0 .
-
   make
 }
 
 package() {
   cd $pkgname-src-*
-
   make DESTDIR=$pkgdir install
-
   install -D -m644 Fonts_LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/Fonts_LICENSE.txt
   install -D -m644 $srcdir/hedgewars.png $pkgdir/usr/share/pixmaps/hedgewars.png
   install -D -m644 share/hedgewars/Data/misc/hedgewars.desktop $pkgdir/usr/share/applications/hedgewars.desktop




More information about the arch-commits mailing list