[arch-commits] Commit in moon-lander/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Allan McRae allan at archlinux.org
Sat Nov 7 07:55:24 EST 2009


    Date: Saturday, November 7, 2009 @ 07:55:24
  Author: allan
Revision: 58376

Merged revisions 356,7609,42610,58346 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/moon-lander/trunk

........
  r356 | aaron | 2008-04-19 08:56:27 +1000 (Sat, 19 Apr 2008) | 1 line
  
  Added svn:keywords to all PKGBUILDs
........
  r7609 | ronald | 2008-08-03 22:09:56 +1000 (Sun, 03 Aug 2008) | 1 line
  
  fix license field & add arch field
........
  r42610 | eric | 2009-06-17 14:34:40 +1000 (Wed, 17 Jun 2009) | 2 lines
  
  upgpkg: moon-lander 1.0-3.1
      rebuild for i686: fixed license
........
  r58346 | allan | 2009-11-07 16:07:59 +1000 (Sat, 07 Nov 2009) | 2 lines
  
  upgpkg: moon-lander 1.0-4
      move binary files out of /usr/share (FS#15305)
........

Modified:
  moon-lander/repos/extra-x86_64/	(properties)
  moon-lander/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++-------------------
 1 file changed, 16 insertions(+), 19 deletions(-)


Property changes on: moon-lander/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /moon-lander/trunk:1
   + /moon-lander/trunk:1-58375

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-11-07 12:51:16 UTC (rev 58375)
+++ extra-x86_64/PKGBUILD	2009-11-07 12:55:24 UTC (rev 58376)
@@ -4,31 +4,28 @@
 
 pkgname=moon-lander
 pkgver=1.0
-pkgrel=3
+pkgrel=4
 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"
 license=('BSD')
 depends=('sdl' 'sdl_mixer' 'sdl_image' 'libvorbis')
-source=(http://ftp.debian.org/debian/pool/main/m/moon-lander/${pkgname}_$pkgver.orig.tar.gz LICENSE)
-md5sums=('5726de9d85b9e8b60c27f2ea6428bc96' '883198142cca0450dfaab47ec26ac8c2')
+source=(http://ftp.debian.org/debian/pool/main/m/moon-lander/${pkgname}_$pkgver.orig.tar.gz 
+        LICENSE)
+md5sums=('5726de9d85b9e8b60c27f2ea6428bc96'
+         '883198142cca0450dfaab47ec26ac8c2')
 
 build() {
-  cd $startdir/src/$pkgname
+  cd $srcdir/$pkgname
+  sed -i "/DATAPATH/{s#\"\"#\"/usr/share/moon-lander/\"#}" moon_lander.c
+  make clean
   make || return 1
-  mkdir -p $startdir/pkg/usr/share/games/$pkgname
-  chmod 755 $startdir/pkg/usr/share/games
-  cp -rp images sounds fonts moon-lander.bin $startdir/pkg/usr/share/games/$pkgname
-  chmod 755 $startdir/pkg/usr/share/games/moon-lander/images
-  chmod 644 $startdir/pkg/usr/share/games/moon-lander/images/*
-  chmod 755 $startdir/pkg/usr/share/games/moon-lander/images/backgrounds
-  chmod 644 $startdir/pkg/usr/share/games/moon-lander/images/backgrounds/*
-  chmod 755 $startdir/pkg/usr/share/games/moon-lander/images/kablam
-  chmod 644 $startdir/pkg/usr/share/games/moon-lander/images/kablam/*
-  chmod 755 $startdir/pkg/usr/share/games/moon-lander/sounds
-  chmod 644 $startdir/pkg/usr/share/games/moon-lander/sounds/*
-  chmod 755 $startdir/pkg/usr/share/games/moon-lander/fonts
-  chmod 644 $startdir/pkg/usr/share/games/moon-lander/fonts/*
-  install -D -m 755 moon-lander $startdir/pkg/usr/bin/moon-lander
-  install -D -m644 ../LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+
+  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
+  done
+  install -Dm755 moon-lander.bin $pkgdir/usr/bin/moon-lander
+
+  install -Dm644 $srcdir/LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list