summaryrefslogtreecommitdiff
path: root/pcr/ryzom-nel/PKGBUILD
blob: bc9fa319995cf3cc9f4effaa0f3cd13cd2ddfcee (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
61
62
63
64
65
66
67
68
# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com>
pkgname=ryzom-nel-hg
pkgver=2687
pkgrel=3
pkgdesc='An awesome free software 3D MMORPG game, NeL engine'
arch=('x86_64' 'i686')
url="http://www.ryzom.com"
license=('AGPL3')
groups=('ryzom')
depends=('mercurial' 
	     'freetype2'
	     'libx11' 
	     'mesa-git' 
	     'libxxf86vm' 
	     'openal' 
	     'freealut' 
	     'libogg' 
	     'libvorbis' 
	     'libxml2'
	     'libjpeg-turbo' 
	     'rrdtool'
	     'libgl-git')
makedepends=('mercurial' 'cmake' 'bison')

conflicts=('ryzom-nel' 'ryzom-nel-hg')
replaces=('ryzom-nel')
backup=('etc/nel/build_ig_boxes.cfg'
	'etc/nel/build_indoor_rbank.cfg'
	'etc/nel/build_rbank.cfg'
	'etc/nel/make_sheet_id.cfg'
	'etc/nel/zviewer.cfg')

_hgroot=http://ryzom.hg.sourceforge.net/hgroot/ryzom/ryzom
_hgrepo=ryzom

build() {
  cd "$srcdir"
  msg "Connecting to Mercurial server...."

  if [[ -d "$_hgrepo" ]]; then
    cd "$_hgrepo"
    hg pull -u
    msg "The local files are updated."
  else
    hg clone "$_hgroot" "$_hgrepo"
  fi

  msg "Mercurial checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_hgrepo-build"
  cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
  mkdir "$srcdir/$_hgrepo-build/code/ryzom-nel"
  cd "$srcdir/$_hgrepo-build/code/ryzom-nel"

  #
  # BUILD HERE
  #
  cmake .. -Wno-dev -DWITH_RYZOM=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL=ON -DCMAKE_INSTALL_PREFIX=/usr -DNL_ETC_PREFIX=/etc/nel
  
 make -j3
}

package() {
  cd "$srcdir/$_hgrepo-build/code/ryzom-nel"
  make DESTDIR="$pkgdir" install
}