[arch-commits] Commit in moon-lander/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Sat Nov 7 01:08:00 EST 2009


    Date: Saturday, November 7, 2009 @ 01:07:59
  Author: allan
Revision: 58346

upgpkg: moon-lander 1.0-4
    move binary files out of /usr/share (FS#15305)

Modified:
  moon-lander/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-11-07 05:48:03 UTC (rev 58345)
+++ PKGBUILD	2009-11-07 06:07:59 UTC (rev 58346)
@@ -4,31 +4,28 @@
 
 pkgname=moon-lander
 pkgver=1.0
-pkgrel=3.1
+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