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

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Tue Mar 18 04:40:24 UTC 2014


    Date: Tuesday, March 18, 2014 @ 05:40:23
  Author: svenstaro
Revision: 107573

upgpkg: supertuxkart 0.8.1-4

Fix FS#39506 and FS#38635

Modified:
  supertuxkart/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-18 03:27:43 UTC (rev 107572)
+++ PKGBUILD	2014-03-18 04:40:23 UTC (rev 107573)
@@ -6,7 +6,7 @@
 
 pkgname=supertuxkart
 pkgver=0.8.1
-pkgrel=3
+pkgrel=4
 pkgdesc='Kart racing game featuring Tux and his friends'
 arch=('i686' 'x86_64')
 url='http://supertuxkart.sourceforge.net/'
@@ -23,22 +23,19 @@
   _fn="data/${pkgname}_desktop.template"
   setconf "$_fn" Exec "$pkgname"
   setconf "$_fn" TryExec "$pkgname"
-  setconf "$_fn" Icon "$pkgname"_64
+  setconf "$_fn" Icon "$pkgname"_128
 
-  cd lib/irrlicht/source/Irrlicht
-  NDEBUG=1 make
+  cp /usr/include/GL/glext.h lib/irrlicht/source/Irrlicht/glext.h
+  cp /usr/include/GL/glxext.h lib/irrlicht/source/Irrlicht/glxext.h
+  cp /usr/include/GL/wglext.h lib/irrlicht/source/Irrlicht/wglext.h
 
-  cd ${srcdir}/SuperTuxKart-${pkgver}
-  #sed -i "s|share/games|share|g" CMakeLists.txt
-
   [[ -d build ]] && rm -r build
   mkdir build && cd build
 
-  cmake \
+  cmake .. \
     -DIRRLICHT_DIR="$srcdir/irrlicht" \
     -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_CXX_FLAGS="-lpthread -lm -ldl" \
-    ..
+    -DCMAKE_CXX_FLAGS="-lpthread -lm -ldl $CXXFLAGS"
 
   make
 }




More information about the arch-commits mailing list