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

Ronald van Haren ronald at archlinux.org
Wed Jul 30 06:41:38 EDT 2008


    Date: Wednesday, July 30, 2008 @ 06:41:37
  Author: ronald
Revision: 7327

upgpkg: xmoto 0.4.2-2
    fix incompatibility against ode 0.10

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

---------------+
 PKGBUILD      |   28 +++++++++++++++++++---------
 xmoto.install |   12 ------------
 2 files changed, 19 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-07-30 05:06:52 UTC (rev 7326)
+++ PKGBUILD	2008-07-30 10:41:37 UTC (rev 7327)
@@ -1,10 +1,11 @@
 # $Id$
-# Maintainer: Travis Willard <travisw at wmpub.ca> 
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Travis Willard <travisw at wmpub.ca> 
 # Contributor: Denis (dtonator at gmail.com)
 
 pkgname=xmoto
 pkgver=0.4.2
-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"
@@ -12,18 +13,27 @@
 depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl>=7.16.2' 
 	 'mesa' 'libxdamage' 'libxfixes' 'sqlite3' 'sdl_ttf' 'desktop-file-utils')
 install=xmoto.install
-source=(http://download.tuxfamily.org/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-src.tar.gz)
+source=(http://download.tuxfamily.org/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-src.tar.gz \
+	ode-0.10.patch )
+md5sums=('15368b282641a225b71c279fe4dc0dc4'
+         'b495d067fa7375099c8d30ebf11ee973')
 
 build() {
-  cd $startdir/src/xmoto-$pkgver
-  ./configure --prefix=/usr
+  cd $srcdir/xmoto-$pkgver
+
+# patch to build with 0de 0.10
+  patch -Np1 < $srcdir/ode-0.10.patch || return 1
+
+  ./configure --prefix=/usr || return 1
   make || return 1
-  make DESTDIR=$startdir/pkg mangdir=/usr/share/man/man6 install
+  make DESTDIR=$startdir/pkg mangdir=/usr/share/man/man6 install || return 1
 
   #install desktop file
-  install -Dm0644 $startdir/src/xmoto-${pkgver}/extra/xmoto.desktop $startdir/pkg/usr/share/applications/xmoto.desktop
+  install -Dm0644 $srcdir/xmoto-${pkgver}/extra/xmoto.desktop \
+	$pkgdir/usr/share/applications/xmoto.desktop
+
   #install icon for desktop file
-  install -Dm0644 $startdir/src/xmoto-${pkgver}/extra/xmoto.xpm $startdir/pkg/usr/share/pixmaps/xmoto.xpm
+  install -Dm0644 $srcdir/xmoto-${pkgver}/extra/xmoto.xpm \
+	$pkgdir/usr/share/pixmaps/xmoto.xpm
 }
 
-md5sums=('15368b282641a225b71c279fe4dc0dc4')

Modified: xmoto.install
===================================================================
--- xmoto.install	2008-07-30 05:06:52 UTC (rev 7326)
+++ xmoto.install	2008-07-30 10:41:37 UTC (rev 7327)
@@ -1,23 +1,11 @@
-# This is a default template for a post-install scriptlet.  You can
-# remove any functions you don't need (and this header).
-
-# arg 1:  the new package version
-pre_install() {
-  /bin/true
-}
-
-# arg 1:  the new package version
 post_install() {
   /usr/bin/update-desktop-database 
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 post_upgrade() {
   /usr/bin/update-desktop-database 
 }
 
-# arg 1:  the old package version
 post_remove() {
   /usr/bin/update-desktop-database 
 }





More information about the arch-commits mailing list