summaryrefslogtreecommitdiff
path: root/community-testing/xmoto/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-12 00:41:00 -0700
committerroot <root@rshg054.dnsready.net>2012-10-12 00:41:00 -0700
commitdfbf90f39b87d2f5ae24b41e47243ddf70d30d2b (patch)
tree9c78f70a856b78c26246cd13ccc23757e5655e79 /community-testing/xmoto/PKGBUILD
parenta9727414be0e6e6c099610a2dbfa21fbe0c9ae83 (diff)
Fri Oct 12 00:40:57 PDT 2012
Diffstat (limited to 'community-testing/xmoto/PKGBUILD')
-rw-r--r--community-testing/xmoto/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/community-testing/xmoto/PKGBUILD b/community-testing/xmoto/PKGBUILD
new file mode 100644
index 000000000..6cfbb2db3
--- /dev/null
+++ b/community-testing/xmoto/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 77535 2012-10-11 21:34:16Z lcarlier $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Travis Willard <travisw@wmpub.ca>
+# Contributor: Denis (dtonator@gmail.com)
+
+pkgname=xmoto
+pkgver=0.5.10
+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' 'desktop-file-utils' 'sdl_net' 'glu'
+ 'libxdg-basedir' 'libxml++')
+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'
+ '9d13fa09f1c558a0fc504f7e7b1ceac6b4b7b20d'
+ 'e741f769d1fc5779a6688970ee97e2a61a50c7ae')
+
+build() {
+ 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
+
+ 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
+}