PKGBUILDs/community/sauerbraten/PKGBUILD

46 lines
2 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Christoph Siegenthaler <csi@gmx.ch>
pkgname=sauerbraten
pkgver=2009_05_04_trooper_edition
pkgrel=1
pkgdesc="Sauerbraten is an improved version of the Cube engine"
arch=('i686' 'x86_64')
url="http://www.sauerbraten.org/"
license=('ZLIB')
depends=('sdl_mixer' 'sdl_image' 'libgl' 'mesa' \
'hicolor-icon-theme' 'desktop-file-utils')
install=sauerbraten.install
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_linux.tar.bz2
sauerbraten-client
sauerbraten-server
sauerbraten.confd
sauerbraten.desktop
sauerbraten.png
license.txt)
md5sums=('47a37d1989a0c666e07235a88b4891aa' 'ac66ef9e80d6fc1b4b047df1c36c07c0' 'd5b6d9be5a5337f78d1d1752976b740e' '937c1434956425b912e29b1f2fff7eef' '9f2d1bbe61398fbbe4d0084a4d92a7eb' '3e602f421f7342cf8c3ed16314523d6f' 'cf46cd0148f03b7477f7c54aec865abe')
build() {
cd $startdir/src/$pkgname/src
make || return 1
make DESTDIR=$startdir/pkg install
cd $startdir/src/sauerbraten
install -D bin_unix/native_client $startdir/pkg/opt/sauerbraten/bin/linux_client
install -D bin_unix/native_server $startdir/pkg/opt/sauerbraten/bin/linux_server
cp -r data $startdir/pkg/opt/sauerbraten
cp -r packages $startdir/pkg/opt/sauerbraten
find $startdir/pkg -type d -name CVS -exec rm -rf '{}' \; 2> /dev/null
install -Dm755 $startdir/src/sauerbraten-client $startdir/pkg/usr/bin/sauerbraten-client
install -Dm755 $startdir/src/sauerbraten-server $startdir/pkg/usr/bin/sauerbraten-server
install -Dm644 $startdir/src/sauerbraten.confd $startdir/pkg/etc/conf.d/sauerbraten
install -Dm644 $startdir/src/sauerbraten.desktop $startdir/pkg/usr/share/applications/sauerbraten.desktop
install -Dm644 $startdir/src/sauerbraten.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps/sauerbraten.png
install -Dm644 $startdir/src/license.txt $startdir/pkg/usr/share/licenses/sauerbraten/license.txt
}