PKGBUILDs/community/rocksndiamonds/PKGBUILD
2009-10-09 21:15:33 -05:00

30 lines
1 KiB
Bash

# $Id: PKGBUILD 1552 2009-08-25 15:42:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# contributor: Jacek Poplawski <jacekpoplawski@gmail.com>
pkgname=rocksndiamonds
pkgver=3.2.6.1
pkgrel=2
pkgdesc="game similiar to Boulderdash with lots of levels"
arch=(i686 x86_64)
url="http://www.artsoft.org/rocksndiamonds/"
license=('GPL')
depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_net' 'smpeg' 'rocksndiamonds-data')
makedepends=('unzip' 'p7zip')
options=(force)
source=(http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$pkgver.tar.gz)
md5sums=('75a4a7c7f11e89fc4a664da3b016a783')
build() {
cd $startdir/src
# main
cd $srcdir/rocksndiamonds-$pkgver
make clean
make RO_GAME_DIR=/usr/share/rocksndiamonds RW_GAME_DIR=/usr/share/rocksndiamonds || return 1
install -d $pkgdir/usr/bin && \
install -d $pkgdir/usr/share/man/man1 && \
cp $srcdir/rocksndiamonds-$pkgver/rocksndiamonds $pkgdir/usr/bin/rocksndiamonds && \
cp $srcdir/rocksndiamonds-$pkgver/rocksndiamonds.1 $pkgdir/usr/share/man/man1
}