1 # Maintainer: Alexander Baldeck <alexander@archlinux.org>
5 pkgdesc="An open source real-time strategy game similar to Warcraft II"
6 url="http://dark-oberon.sourceforge.net"
7 depends=('glfw' 'fmod')
8 source=(http://dl.sourceforge.net/sourceforge/dark-oberon/dark-oberon-$pkgver-RC1.tar.gz \
9 dark-oberon-$pkgver-usr.patch dark-oberon.sh)
12 export DARK_OBERON_HOME=$startdir/src/dark-oberon-$pkgver-RC$pkgrel
13 cd $startdir/src/dark-oberon-$pkgver-RC1
14 patch -Np1 -i ../dark-oberon-$pkgver-usr.patch || return 1
15 sed "s|LIBRARIES = |LIBRARIES = -pthread -lglfw -lGL -lX11 -lXxf86vm -lGLU -lXext -lfmod-3.74.1 |g" -i $startdir/src/dark-oberon-$pkgver-RC1/src/Makefile
16 sed "s|CPPFLAGS = -g -Wall -O|CPPFLAGS = ${CXXFLAGS}|g" -i $startdir/src/dark-oberon-$pkgver-RC1/src/Makefile
17 sed "s|-DDATA_DIR='\"\"'|-DDATA_DIR='\"/opt/dark-oberon/\"'|g" -i $startdir/src/dark-oberon-$pkgver-RC1/src/Makefile
18 make SOUND=1 || return 1
20 mkdir -p $startdir/pkg/opt/dark-oberon
21 for src in dark-oberon dat docs libs maps races schemes; do
22 cp -a $src $startdir/pkg/opt/dark-oberon
24 chown -R root:root $startdir/pkg/*
25 chmod -R a+r $startdir/pkg/*
27 mkdir -p $startdir/pkg/etc/profile.d
28 install -c $startdir/src/dark-oberon.sh $startdir/pkg/etc/profile.d/dark-oberon.sh
30 md5sums=('62e5f4593b282b630a06675127afc840' '9bbb5cc6d635c2435ad1d80591150cb6')