summaryrefslogtreecommitdiff
path: root/pcr/ryzom-nel/PKGBUILD
blob: 8d45c4dd304cfdcf3d9e2c70acf868eae9ff8a73 (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
# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com>
pkgname='ryzom-nel'
pkgver=0.8.0
pkgrel=9
arch=('x86_64' 'i686')
conflicts=('ryzom-nel')
groups=('ryzom')
options=(!strip)
pkgdesc="An awesome free software 3D MMORPG game, NeL engine"
url="http://www.ryzom.com"
license=('AGPL3')
depends=('freetype2'
         'libx11' 
         'mesa' 
         'libxxf86vm' 
         'openal' 
         'freealut' 
         'libogg' 
         'libvorbis' 
         'libxml2' 
         'libjpeg' 
         'rrdtool' )
makedepends=('cmake' 'bison' 'kervalasquish-hg')

auser="shackra"
achangeset="02c9a4faf4ff"

source=("https://bitbucket.org/$auser/ryzom/get/$achangeset.tar.gz")

build() {
  cd "$srcdir/$auser-ryzom-$achangeset/code"
 
  if [[ -d $pkgname ]]; then
     rm -rf $pkgname
     mkdir $pkgname
  else
     mkdir $pkgname
  fi

  cd $pkgname

  #CMAKE_USE_RELATIVE_PATHS=true
  cmake .. -Wno-dev -DWITH_LIBWWW_STATIC=ON -DWITH_RYZOM=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_NEL_TESTS=OFF -DWITH_NEL=ON -DCMAKE_INSTALL_PREFIX=/usr -DNL_ETC_PREFIX=/etc/nel -DNL_DRIVER_PREFIX=/usr/lib/nel -DNL_SHARE_PREFIX=/usr/share/nel -DNL_BIN_PREFIX=/usr/bin -DNL_SBIN_PREFIX=/usr/sbin -DNL_LIB_PREFIX=/usr/lib/nel -DNL_DRIVER_PREFIX=/usr/lib/nel -DWITH_SYMBOLS=ON -DWITH_DRIVER_OPENGL=ON -DWITH_DRIVER_OPENAL=ON

  make -j3
}

package() {
  cd "$srcdir/$auser-ryzom-$achangeset/code/$pkgname"
  make DESTDIR="$pkgdir" install
}

sha256sums=('c280b4a106cb6684aee1b186c82144fc6a72c874976ba347712f96d9ae985baf')