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

2016-10-12 Thread Antonio Rojas
Date: Wednesday, October 12, 2016 @ 17:10:43
  Author: arojas
Revision: 192071

libode 0.14 rebuild

Modified:
  xmoto/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-10-12 17:00:03 UTC (rev 192070)
+++ PKGBUILD2016-10-12 17:10:43 UTC (rev 192071)
@@ -5,13 +5,13 @@
 
 pkgname=xmoto
 pkgver=0.5.11
-pkgrel=5
+pkgrel=6
 pkgdesc="A challenging 2D motocross platform game, where physics play an 
important role."
 arch=('i686' 'x86_64')
 url="http://xmoto.tuxfamily.org;
 license=('GPL')
 depends=('libjpeg' 'libpng' 'lua52' 'sdl_mixer' 'ode' 'curl' 'sqlite' 'sdl_ttf'
- 'desktop-file-utils' 'sdl_net' 'glu' 'libxdg-basedir' 'libxml2')
+ 'sdl_net' 'glu' 'libxdg-basedir' 'libxml2')
 makedepends=('mesa')
 
source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz;
 'lua52_compat.patch')


[arch-commits] Commit in xmoto/trunk (PKGBUILD xmoto.install)

2016-05-13 Thread Antonio Rojas
Date: Friday, May 13, 2016 @ 22:09:12
  Author: arojas
Revision: 175241

Hooks

Modified:
  xmoto/trunk/PKGBUILD
Deleted:
  xmoto/trunk/xmoto.install

---+
 PKGBUILD  |3 +--
 xmoto.install |   11 ---
 2 files changed, 1 insertion(+), 13 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-13 20:05:25 UTC (rev 175240)
+++ PKGBUILD2016-05-13 20:09:12 UTC (rev 175241)
@@ -5,7 +5,7 @@
 
 pkgname=xmoto
 pkgver=0.5.11
-pkgrel=4
+pkgrel=5
 pkgdesc="A challenging 2D motocross platform game, where physics play an 
important role."
 arch=('i686' 'x86_64')
 url="http://xmoto.tuxfamily.org;
@@ -13,7 +13,6 @@
 depends=('libjpeg' 'libpng' 'lua52' 'sdl_mixer' 'ode' 'curl' 'sqlite' 'sdl_ttf'
  'desktop-file-utils' 'sdl_net' 'glu' 'libxdg-basedir' 'libxml2')
 makedepends=('mesa')
-install=xmoto.install
 
source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz;
 'lua52_compat.patch')
 sha1sums=('a795616fb359e60be343e339f7acf5e95e0f1ce2'

Deleted: xmoto.install
===
--- xmoto.install   2016-05-13 20:05:25 UTC (rev 175240)
+++ xmoto.install   2016-05-13 20:09:12 UTC (rev 175241)
@@ -1,11 +0,0 @@
-post_install() {
-  update-desktop-database -q
-}
-
-post_upgrade() {
-  post_install
-}
-
-post_remove() {
-  post_install
-}


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

2015-12-06 Thread Bartłomiej Piotrowski
Date: Sunday, December 6, 2015 @ 23:55:10
  Author: bpiotrowski
Revision: 149318

C++11 ABI rebuild

Modified:
  xmoto/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-12-06 22:48:59 UTC (rev 149317)
+++ PKGBUILD2015-12-06 22:55:10 UTC (rev 149318)
@@ -5,7 +5,7 @@
 
 pkgname=xmoto
 pkgver=0.5.11
-pkgrel=2
+pkgrel=3
 pkgdesc="A challenging 2D motocross platform game, where physics play an 
important role."
 arch=('i686' 'x86_64')
 url="http://xmoto.tuxfamily.org;


[arch-commits] Commit in xmoto/trunk (PKGBUILD lua52_compat.patch)

2015-05-08 Thread Anatol Pomozov
Date: Saturday, May 9, 2015 @ 05:58:02
  Author: anatolik
Revision: 132998

Lua 5.2 rebuild

This version is not compatible with lua 5.3

Added:
  xmoto/trunk/lua52_compat.patch
Modified:
  xmoto/trunk/PKGBUILD

+
 PKGBUILD   |8 ++--
 lua52_compat.patch |   45 +
 2 files changed, 51 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-09 02:28:08 UTC (rev 132997)
+++ PKGBUILD2015-05-09 03:58:02 UTC (rev 132998)
@@ -5,20 +5,22 @@
 
 pkgname=xmoto
 pkgver=0.5.11
-pkgrel=1
+pkgrel=2
 pkgdesc=A challenging 2D motocross platform game, where physics play an 
important role.
 arch=('i686' 'x86_64')
 url=http://xmoto.tuxfamily.org;
 license=('GPL')
-depends=('libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl' 'sqlite3' 'sdl_ttf'
+depends=('libjpeg' 'libpng' 'lua52' 'sdl_mixer' 'ode' 'curl' 'sqlite' 'sdl_ttf'
  'desktop-file-utils' 'sdl_net' 'glu' 'libxdg-basedir' 'libxml2')
 makedepends=('mesa')
 install=xmoto.install
 
source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz;
 'xmoto-0.5.10-libpng15.patch'
+'lua52_compat.patch'
 'system.cpp.patch')
 sha1sums=('a795616fb359e60be343e339f7acf5e95e0f1ce2'
   '9d13fa09f1c558a0fc504f7e7b1ceac6b4b7b20d'
+  '104542546fbbd24172ddaa179f87e1b26df8b761'
   'e741f769d1fc5779a6688970ee97e2a61a50c7ae')
 
 prepare() {
@@ -26,6 +28,7 @@
 
   patch -Np1 -i ${srcdir}/xmoto-0.5.10-libpng15.patch
   patch -Np1 -i ${srcdir}/system.cpp.patch
+  patch -Np1 -i ${srcdir}/lua52_compat.patch
 
   # Remove bundled ode library because its headers get picked up during build
   rm -r src/ode
@@ -34,6 +37,7 @@
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
 
+  ./bootstrap # regenrate confif file because the lua patch modifies 
configure.in
   ./configure --prefix=/usr --disable-sdltest
   make
 }

Added: lua52_compat.patch
===
--- lua52_compat.patch  (rev 0)
+++ lua52_compat.patch  2015-05-09 03:58:02 UTC (rev 132998)
@@ -0,0 +1,45 @@
+diff --git a/configure.in b/configure.in
+index 452f196..dbceb05 100644
+--- a/configure.in
 b/configure.in
+@@ -157,8 +157,8 @@ AM_CONDITIONAL([USE_SDLGFX], test $USE_SDLGFX = 1)
+ # m
+ AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found))
+ 
+-AC_SEARCH_LIBS(lua_pushboolean,lua lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.1, 
liblua50, or liblua required)])
+-AC_SEARCH_LIBS(luaopen_math,lualib lualib5.1 lualib50, [], 
[AC_MSG_ERROR(liblualib5.1, liblualib50, or liblualib required)])
++AC_SEARCH_LIBS(lua_pushboolean,lua lua5.2 lua5.1 lua50, [], 
[AC_MSG_ERROR(liblua5.2 liblua5.1, liblua50, or liblua required)])
++AC_SEARCH_LIBS(luaopen_math,lualib liblua5.2 lualib5.1 lualib50, [], 
[AC_MSG_ERROR(liblualib5.2 liblualib5.1, liblualib50, or liblualib required)])
+ 
+ dnl * Check lua headers, as they are prone to be located random places on 
random systems! *
+ dnl The following three lines where suggested by Eric Piel, but they don't 
seem to work on my system
+@@ -174,6 +174,8 @@ AC_CHECK_HEADER(lua/lua.h,AC_DEFINE(HAVE_LUA_LUA_H)   
[USE_LUA_VERSION=unkn
+ AC_CHECK_HEADER(lua50/lua.h,  AC_DEFINE(HAVE_LUA50_LUA_H) 
[USE_LUA_VERSION=5.0])
+ AC_CHECK_HEADER(lua51/lua.h,  AC_DEFINE(HAVE_LUA51_LUA_H) 
[USE_LUA_VERSION=5.1])
+ AC_CHECK_HEADER(lua5.1/lua.h, 
AC_DEFINE(HAVE_LUA5_1_LUA_H)[USE_LUA_VERSION=5.1])
++AC_CHECK_HEADER(lua52/lua.h,  AC_DEFINE(HAVE_LUA52_LUA_H) 
[USE_LUA_VERSION=5.2])
++AC_CHECK_HEADER(lua5.2/lua.h, 
AC_DEFINE(HAVE_LUA5_2_LUA_H)[USE_LUA_VERSION=5.2])
+ AC_DEFINE(LUA_COMPAT_MODULE, 1)
+ 
+ AC_LANG_PUSH([C++])
+diff --git a/src/include/xm_lua.h b/src/include/xm_lua.h
+index 8a2cc17..f470de2 100644
+--- a/src/include/xm_lua.h
 b/src/include/xm_lua.h
+@@ -4,7 +4,15 @@ extern C {
+ #include lauxlib.h
+ #include lualib.h
+   #else
+-#if defined(HAVE_LUA5_1_LUA_H)
++#if defined(HAVE_LUA5_2_LUA_H)
++  #include lua5.2/lua.h
++  #include lua5.2/lauxlib.h
++  #include lua5.2/lualib.h
++#elif defined(HAVE_LUA52_LUA_H)
++  #include lua52/lua.h
++  #include lua52/lauxlib.h
++  #include lua52/lualib.h
++#elif defined(HAVE_LUA5_1_LUA_H)
+   #include lua5.1/lua.h
+   #include lua5.1/lauxlib.h
+   #include lua5.1/lualib.h


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

2014-11-12 Thread Evangelos Foutras
Date: Wednesday, November 12, 2014 @ 19:27:58
  Author: foutrelis
Revision: 122451

upgpkg: xmoto 0.5.11-1

New upstream release.

Modified:
  xmoto/trunk/PKGBUILD

--+
 PKGBUILD |   38 +-
 1 file changed, 21 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-11-12 18:24:35 UTC (rev 122450)
+++ PKGBUILD2014-11-12 18:27:58 UTC (rev 122451)
@@ -1,48 +1,52 @@
 # $Id$
 # Maintainer: Ronald van Haren ronald.archlinux.org
-# Contributor: Travis Willard trav...@wmpub.ca 
+# Contributor: Travis Willard trav...@wmpub.ca
 # Contributor: Denis (dtona...@gmail.com)
 
 pkgname=xmoto
-pkgver=0.5.10
-pkgrel=4
+pkgver=0.5.11
+pkgrel=1
 pkgdesc=A challenging 2D motocross platform game, where physics play an 
important role.
 arch=('i686' 'x86_64')
 url=http://xmoto.tuxfamily.org;
 license=('GPL')
-depends=('libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl' 
-'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'glu'
- 'libxdg-basedir' 'libxml++')
+depends=('libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl' 'sqlite3' 'sdl_ttf'
+ 'desktop-file-utils' 'sdl_net' 'glu' 'libxdg-basedir' 'libxml2')
 makedepends=('mesa')
 install=xmoto.install
 
source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz;
 'xmoto-0.5.10-libpng15.patch'
 'system.cpp.patch')
-sha1sums=('692d50a9c91791cd06ee84846632651b44544fcc'
+sha1sums=('a795616fb359e60be343e339f7acf5e95e0f1ce2'
   '9d13fa09f1c558a0fc504f7e7b1ceac6b4b7b20d'
   'e741f769d1fc5779a6688970ee97e2a61a50c7ae')
 
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+prepare() {
+  cd ${srcdir}/${pkgname}-${pkgver}
 
   patch -Np1 -i ${srcdir}/xmoto-0.5.10-libpng15.patch
   patch -Np1 -i ${srcdir}/system.cpp.patch
 
-  # build and install 
-  ./configure LDFLAGS=-L/usr/lib --prefix=/usr --disable-sdltest
+  # Remove bundled ode library because its headers get picked up during build
+  rm -r src/ode
+}
 
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr --disable-sdltest
   make
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir} mangdir=/usr/share/man/man6 install
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} mangdir=/usr/share/man/man6 install
 
   # install desktop file
-  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/extra/xmoto.desktop \
-${pkgdir}/usr/share/applications/xmoto.desktop
+  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/extra/xmoto.desktop \
+${pkgdir}/usr/share/applications/xmoto.desktop
 
   # install icon for desktop file
-  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/extra/xmoto.xpm \
-${pkgdir}/usr/share/pixmaps/xmoto.xpm
+  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/extra/xmoto.xpm \
+${pkgdir}/usr/share/pixmaps/xmoto.xpm
 }


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

2013-04-29 Thread Evangelos Foutras
Date: Monday, April 29, 2013 @ 19:02:43
  Author: foutrelis
Revision: 89519

upgpkg: xmoto 0.5.10-4

libpng 1.6 rebuild.

Modified:
  xmoto/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-29 16:43:32 UTC (rev 89518)
+++ PKGBUILD2013-04-29 17:02:43 UTC (rev 89519)
@@ -5,7 +5,7 @@
 
 pkgname=xmoto
 pkgver=0.5.10
-pkgrel=3
+pkgrel=4
 pkgdesc=A challenging 2D motocross platform game, where physics play an 
important role.
 arch=('i686' 'x86_64')
 url=http://xmoto.tuxfamily.org;



[arch-commits] Commit in xmoto/trunk (PKGBUILD libpng-1.4.patch)

2010-01-22 Thread Eric Bélanger
Date: Friday, January 22, 2010 @ 03:19:26
  Author: eric
Revision: 64796

upgpkg: xmoto 0.5.2-3
Rebuilt for libpng 1.4 and libjpeg 8

Added:
  xmoto/trunk/libpng-1.4.patch
Modified:
  xmoto/trunk/PKGBUILD

--+
 PKGBUILD |8 +---
 libpng-1.4.patch |   12 
 2 files changed, 17 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-01-22 07:59:45 UTC (rev 64795)
+++ PKGBUILD2010-01-22 08:19:26 UTC (rev 64796)
@@ -5,7 +5,7 @@
 
 pkgname=xmoto
 pkgver=0.5.2
-pkgrel=2
+pkgrel=3
 pkgdesc=A challenging 2D motocross platform game, where physics play an 
important role.
 arch=('i686' 'x86_64')
 url=http://xmoto.tuxfamily.org;
@@ -13,14 +13,16 @@
 depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode=0.11.1' 
'curl=7.16.2' 
 'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net')
 install=xmoto.install
-source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz)
-md5sums=('1e3678ebceca21d61844efb53c140227')
+source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz
 libpng-1.4.patch)
+md5sums=('1e3678ebceca21d61844efb53c140227' 'ddf2e68295a00b69fb733f8b8a305db9')
+sha1sums=('aa819872f06beb114025c490cea8e229cd85135d' 
'44f6b18a8d03054fd8975b82373f422d72f51347')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
 
   # upstream fix compilation issue
   sed -i 's|v_replay  m_Chunks.size();|v_replay  (unsigned int) 
m_Chunks.size();|' src/Replay.cpp || return 1
+  patch -p1  ../libpng-1.4.patch || return 1
 
   # build and install 
   ./configure LDFLAGS=-L/usr/lib --prefix=/usr --disable-sdltest

Added: libpng-1.4.patch
===
--- libpng-1.4.patch(rev 0)
+++ libpng-1.4.patch2010-01-22 08:19:26 UTC (rev 64796)
@@ -0,0 +1,12 @@
+diff -Naur xmoto-0.5.2-orig/src/image/tim_png.cpp 
xmoto-0.5.2/src/image/tim_png.cpp
+--- xmoto-0.5.2-orig/src/image/tim_png.cpp 2010-01-22 02:50:26.0 
-0500
 xmoto-0.5.2/src/image/tim_png.cpp  2010-01-22 02:52:04.0 -0500
+@@ -166,7 +166,7 @@
+   png_set_palette_to_rgb(PngPtr);
+   
+   if(nColorType==PNG_COLOR_TYPE_GRAY  nBitDepth8)
+-  png_set_gray_1_2_4_to_8(PngPtr);
++  png_set_expand_gray_1_2_4_to_8(PngPtr);
+ 
+   if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS))
+   png_set_tRNS_to_alpha(PngPtr);