[arch-commits] CVS update of extra/games/xmoto (PKGBUILD xmoto.desktop xmoto.install)

Travis Willard travis at archlinux.org
Wed Sep 26 03:52:32 UTC 2007


    Date: Tuesday, September 25, 2007 @ 23:52:32
  Author: travis
    Path: /home/cvs-extra/extra/games/xmoto

   Added: xmoto.desktop (1.1) xmoto.install (1.1)
Modified: PKGBUILD (1.9 -> 1.10)

upgpkg: xmoto 0.3.3-1
Upstream update


---------------+
 PKGBUILD      |   16 ++++++++++------
 xmoto.desktop |   13 +++++++++++++
 xmoto.install |   27 +++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 6 deletions(-)


Index: extra/games/xmoto/PKGBUILD
diff -u extra/games/xmoto/PKGBUILD:1.9 extra/games/xmoto/PKGBUILD:1.10
--- extra/games/xmoto/PKGBUILD:1.9	Sun Aug 12 20:13:55 2007
+++ extra/games/xmoto/PKGBUILD	Tue Sep 25 23:52:31 2007
@@ -1,24 +1,28 @@
-# $Id: PKGBUILD,v 1.9 2007/08/13 00:13:55 eric Exp $
+# $Id: PKGBUILD,v 1.10 2007/09/26 03:52:31 travis Exp $
 # Maintainer: Travis Willard <travisw at wmpub.ca> 
 # Contributor: Denis (dtonator at gmail.com)
 
 pkgname=xmoto
-pkgver=0.3.2
+pkgver=0.3.3
 pkgrel=1
 pkgdesc="A challenging 2D motocross platform game, where physics play an important role in gameplay."
 arch=('i686' 'x86_64')
 url="http://xmoto.tuxfamily.org"
 license=('GPL')
 depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl>=7.16.2' 
-         'mesa' 'libxdamage' 'libxfixes' 'sqlite3' 'sdl_ttf')
-source=(http://download.tuxfamily.org/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-src.tar.gz)
-md5sums=('09f40a4cc189033ce0753eadb0a2213e')
-sha1sums=('5e56b0dc50f37c33c4aad77bd97d5d13c3b0f06e')
+	 '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 xmoto.desktop)
+md5sums=('f1f7726a8856f9c9efa2ae8e3192bb7f'
+         '6db4ee410eadb61db14c74576f279ce7')
 
 build() {
   cd $startdir/src/xmoto-$pkgver
   ./configure --prefix=/usr
   make || return 1
   make DESTDIR=$startdir/pkg mangdir=/usr/man/man6 install
+
+  #install desktop file
+  install -Dm0644 $startdir/src/xmoto.desktop $startdir/pkg/usr/share/applications/xmoto.desktop
 }
 
Index: extra/games/xmoto/xmoto.desktop
diff -u /dev/null extra/games/xmoto/xmoto.desktop:1.1
--- /dev/null	Tue Sep 25 23:52:31 2007
+++ extra/games/xmoto/xmoto.desktop	Tue Sep 25 23:52:31 2007
@@ -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;
Index: extra/games/xmoto/xmoto.install
diff -u /dev/null extra/games/xmoto/xmoto.install:1.1
--- /dev/null	Tue Sep 25 23:52:31 2007
+++ extra/games/xmoto/xmoto.install	Tue Sep 25 23:52:32 2007
@@ -0,0 +1,27 @@
+# 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 
+}
+
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list