From c34f78dd37c2a2015d43de5d89748a2f8147ba1b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Jan 2012 23:14:57 +0000 Subject: Tue Jan 31 23:14:56 UTC 2012 --- community-testing/xmoto/PKGBUILD | 43 ++++++++++++++++++++++ community-testing/xmoto/xmoto-0.5.9-libpng15.patch | 10 +++++ community-testing/xmoto/xmoto.desktop | 13 +++++++ community-testing/xmoto/xmoto.install | 15 ++++++++ 4 files changed, 81 insertions(+) create mode 100644 community-testing/xmoto/PKGBUILD create mode 100644 community-testing/xmoto/xmoto-0.5.9-libpng15.patch create mode 100644 community-testing/xmoto/xmoto.desktop create mode 100644 community-testing/xmoto/xmoto.install (limited to 'community-testing/xmoto') diff --git a/community-testing/xmoto/PKGBUILD b/community-testing/xmoto/PKGBUILD new file mode 100644 index 000000000..0a865690d --- /dev/null +++ b/community-testing/xmoto/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: $ +# Maintainer: Ronald van Haren +# Contributor: Travis Willard +# Contributor: Denis (dtonator@gmail.com) + +pkgname=xmoto +pkgver=0.5.9 +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=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode=0.11.1' 'curl' + 'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'libxdg-basedir' 'libxml++') +install=xmoto.install +source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz" + 'xmoto-0.5.9-libpng15.patch') +sha1sums=('07757accce78151dc8873bef8270df0e56196772' + '27f52bd30772f67898e0bfd8c1e12478a4848192') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + patch -Np1 -i "${srcdir}/xmoto-0.5.9-libpng15.patch" + + # build and install + ./configure LDFLAGS="-L/usr/lib" --prefix=/usr --disable-sdltest + + make +} + +package() { + 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 icon for desktop file + install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/extra/xmoto.xpm \ + ${pkgdir}/usr/share/pixmaps/xmoto.xpm +} diff --git a/community-testing/xmoto/xmoto-0.5.9-libpng15.patch b/community-testing/xmoto/xmoto-0.5.9-libpng15.patch new file mode 100644 index 000000000..0410c81c5 --- /dev/null +++ b/community-testing/xmoto/xmoto-0.5.9-libpng15.patch @@ -0,0 +1,10 @@ +--- a/src/image/tim_png.cpp 2011-10-11 22:18:11.000000000 +0200 ++++ b/src/image/tim_png.cpp 2012-01-19 19:58:24.000000000 +0100 +@@ -24,6 +24,7 @@ + */ + #include + #include ++#include + #include "tim.h" + #include "png.h" + diff --git a/community-testing/xmoto/xmoto.desktop b/community-testing/xmoto/xmoto.desktop new file mode 100644 index 000000000..5ae6fe226 --- /dev/null +++ b/community-testing/xmoto/xmoto.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Icon=/usr/share/xmoto/xmoto_icone_x.ico +Exec=/usr/bin/xmoto +Terminal=false +StartupNotify=false + +Name=XMoto +GenericName=Game +Comment=is a 2D physics-based motocross game. + +Categories=Game; diff --git a/community-testing/xmoto/xmoto.install b/community-testing/xmoto/xmoto.install new file mode 100644 index 000000000..52399d4c1 --- /dev/null +++ b/community-testing/xmoto/xmoto.install @@ -0,0 +1,15 @@ +post_install() { + /usr/bin/update-desktop-database +} + +post_upgrade() { + /usr/bin/update-desktop-database +} + +post_remove() { + /usr/bin/update-desktop-database +} + +op=$1 +shift +$op $* -- cgit v1.2.3-54-g00ecf