[arch-commits] Commit in moon-lander/trunk (3 files)
Angel Velásquez
angvp at archlinux.org
Sun Jul 4 02:43:42 UTC 2010
Date: Saturday, July 3, 2010 @ 22:43:42
Author: angvp
Revision: 84745
upgpkg: moon-lander 1.0-7
-m
Added:
moon-lander/trunk/moon-lander-background.patch
moon-lander/trunk/moon-lander.desktop
Modified:
moon-lander/trunk/PKGBUILD
------------------------------+
PKGBUILD | 5 +++--
moon-lander-background.patch | 25 +++++++++++++++++++++++++
moon-lander.desktop | 11 +++++++++++
3 files changed, 39 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-07-03 21:39:27 UTC (rev 84744)
+++ PKGBUILD 2010-07-04 02:43:42 UTC (rev 84745)
@@ -4,7 +4,7 @@
pkgname=moon-lander
pkgver=1.0
-pkgrel=6
+pkgrel=7
pkgdesc="An addictive game of skill where you must land a space-ship on the moon at a perfect speed."
arch=('i686' 'x86_64')
url="None"
@@ -28,7 +28,8 @@
install -dm755 $pkgdir/usr/share/$pkgname/{fonts,images/{backgrounds,kablam},sounds}
for dir in fonts images{,/backgrounds,/kablam} sounds; do
- install -m644 $dir/* $pkgdir/usr/share/$pkgname/$dir
+ #install -m644 $dir/* $pkgdir/usr/share/$pkgname/$dir
+ cp -R $dir/* $pkgdir/usr/share/$pkgname/$dir && chmod -R 755 $pkgdir/usr/share/$pkgname/$dir
done
install -Dm755 moon-lander.bin $pkgdir/usr/bin/moon-lander
Added: moon-lander-background.patch
===================================================================
--- moon-lander-background.patch (rev 0)
+++ moon-lander-background.patch 2010-07-04 02:43:42 UTC (rev 84745)
@@ -0,0 +1,25 @@
+--- moon-lander-1.0.orig/moon_lander.c 2007-03-10 23:07:38.000000000 +0100
++++ moon-lander-1.0/moon_lander.c 2007-03-10 23:14:50.000000000 +0100
+@@ -197,6 +197,8 @@
+ while (!done){
+ if ( files[count] = readdir(dir) ){
+
++ if ( files[count]->d_type & DT_DIR )
++ continue;
+ //printf("I see - %d %s\n", count, files[count]->d_name);
+ count++;
+ }
+@@ -222,12 +224,12 @@
+
+ game->back_no++;
+
+- if (game->back_no < 2){
+- game->back_no = 2;
++ if (game->back_no < 0){
++ game->back_no = 0;
+ }
+
+ if (game->back_no >= count){
+- game->back_no = 2;
++ game->back_no = 0;
+ }
Added: moon-lander.desktop
===================================================================
--- moon-lander.desktop (rev 0)
+++ moon-lander.desktop 2010-07-04 02:43:42 UTC (rev 84745)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Icon=/usr/share/moon-lander/images/win_icon.bmp
+Exec=/usr/bin/moon-lander
+Terminal=false
+StartupNotify=false
+Name=Moon-Lander
+GenericName=Game
+Comment=An addictive game of skill where you must land a space-ship on the moon at a perfect speed.
+Categories=Game;
More information about the arch-commits
mailing list