summaryrefslogtreecommitdiffstats
path: root/0ad-svn/PKGBUILD
blob: 4f61a83a3874cb7bd095f02c4089af7e7682b8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: Florian Pritz <f-p@gmx.at>
pkgname=0ad-svn
pkgver=7020
pkgrel=1
pkgdesc="real-time 3D strategy game"
arch=('i686' 'x86_64')
url=""
license=('GPL')
groups=()
depends=('nasm' 'sdl' 'boost' 'libpng' 'libxml2' 'openal' 'libogg' 'libvorbis' 'crypto++' 'spidermonkey' 'wxgtk' 'valgrind' 'enet' 'devil')
makedepends=('subversion')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=()
noextract=()
md5sums=()

_svntrunk=http://svn.wildfiregames.com/public/ps/trunk/
_svnmod=trunk

build() {
  cd "$srcdir"

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_svnmod-build"
  cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  #
  # BUILD
  #
  pushd libraries/fcollada/src
  make || return 1
  popd
  pushd build/premake/src 
  make || return 1
  cp bin/premake ..
  popd
  pushd build/workspaces
  ./update-workspaces.sh
  cd gcc
  make || return 1
  cd ../../binaries/system
  ./pyrogenesis_dbg

}

# vim:set ts=2 sw=2 et: