diff options
author | Mike Sampson | 2015-06-21 20:13:50 +1000 |
---|---|---|
committer | Mike Sampson | 2015-06-21 20:13:50 +1000 |
commit | a6186d708b94b472c6937207a72d4efefb82495b (patch) | |
tree | d0fead99fd9b5ebfb8ab41f114cf041079ff45d4 | |
download | aur-a6186d708b94b472c6937207a72d4efefb82495b.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | LICENSE | 24 | ||||
-rw-r--r-- | PKGBUILD | 45 | ||||
-rw-r--r-- | moon-lander-background.patch | 25 | ||||
-rw-r--r-- | moon-lander.desktop | 11 |
5 files changed, 128 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..dbba09d7a93 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = moon-lander + pkgdesc = An addictive game of skill where you must land a space-ship on the moon at a perfect speed. + pkgver = 1.0 + pkgrel = 7 + url = http://none + arch = i686 + arch = x86_64 + license = BSD + depends = sdl + depends = sdl_mixer>=1.2.10 + depends = sdl_image + depends = libvorbis + source = http://ftp.debian.org/debian/pool/main/m/moon-lander/moon-lander_1.0.orig.tar.gz + source = moon-lander-background.patch + source = moon-lander.desktop + source = LICENSE + md5sums = 5726de9d85b9e8b60c27f2ea6428bc96 + md5sums = d6b948632202ddcda78da4bb1fcd021a + md5sums = 8bba1446183337ab24b427cb92a118f8 + md5sums = 883198142cca0450dfaab47ec26ac8c2 + +pkgname = moon-lander + diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000000..384e3401a7a --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright 2001 David J. Blood. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1.Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2.Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..38c9bdecde4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Mike Sampson <mike at sambodata dot com> +# Contributor: dale <dale@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=moon-lander +pkgver=1.0 +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="http://none" +license=('BSD') +depends=('sdl' 'sdl_mixer>=1.2.10' 'sdl_image' 'libvorbis') +source=(http://ftp.debian.org/debian/pool/main/m/moon-lander/${pkgname}_$pkgver.orig.tar.gz + moon-lander-background.patch + moon-lander.desktop + LICENSE) +md5sums=('5726de9d85b9e8b60c27f2ea6428bc96' + 'd6b948632202ddcda78da4bb1fcd021a' + '8bba1446183337ab24b427cb92a118f8' + '883198142cca0450dfaab47ec26ac8c2') + +build() { + cd $srcdir/$pkgname + sed -i "/DATAPATH/{s#\"\"#\"/usr/share/moon-lander/\"#}" moon_lander.c + sed -i 's/-lSDL_mixer/-lSDL_mixer\ -lm/' Makefile + patch -Np1 -i ${srcdir}/moon-lander-background.patch + make clean + make +} + +package() { + cd $srcdir/$pkgname + + 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 + 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 + + install -Dm644 $srcdir/moon-lander.desktop \ + $pkgdir/usr/share/applications/moon-lander.desktop + + install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/moon-lander-background.patch b/moon-lander-background.patch new file mode 100644 index 00000000000..239ba2fdd27 --- /dev/null +++ b/moon-lander-background.patch @@ -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; + } diff --git a/moon-lander.desktop b/moon-lander.desktop new file mode 100644 index 00000000000..c79875bab7e --- /dev/null +++ b/moon-lander.desktop @@ -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; |