PKGBUILDs/extra/moon-lander/PKGBUILD
2009-10-09 21:23:22 -05:00

34 lines
1.6 KiB
Bash

# $Id: PKGBUILD 42611 2009-06-17 04:35:22Z eric $
# Maintainer: dale <dale@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=moon-lander
pkgver=1.0
pkgrel=3.1
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')
build() {
cd $startdir/src/$pkgname
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
}