summaryrefslogtreecommitdiff
path: root/pcr/nel-hg/PKGBUILD
blob: ee596739f0331ec6429faa9978834630c70a7425 (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
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer: Jorge Araya Navarro <elcorreo@deshackra.com>
pkgname='nel-hg'
srcpkgname='ryzom-hg'
hgver=923522b
pkgver=20131215
pkgrel=1
pkgdesc="a toolkit for the development of massively online universes."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.ryzomcore.org/"
license=('AGPL3')
depends=('libpng' 'libjpeg' 'libwww-hg' 'boost' 'freetype2'
  'luabind' 'libogg' 'libvorbis' 'openal' 'mesa' 'glu') # por saber
makedepends=('mercurial' 'cpptest' 'cmake' 'bison')
conflicts=('ryzom-nel' 'ryzom-client')
# options=(!strip) # for debbuging propurses
source=("https://repo.parabola.nu/other/$srcpkgname/$srcpkgname-$pkgver.tar.gz")
sha256sums=('ad05f08004a80758a13566061ce29edfe4803c0c62e30190c437c781038c254e')


mksource=("$srcpkgname-$pkgver::hg+https://bitbucket.org/ryzom/ryzomcore#revision=${hgver}")
mksource() {
  cd "$srcdir/$srcpkgname-$pkgver/"
  rm -rf .hg*
  cd "$srcdir/$srcpkgname-$pkgver/code/"
  mv * ../
  rm -rf "$srcdir/$srcpkgname-$pkgver/code/"
  sed -i 's|<freetype/|<freetype2/|g' "${srcdir}/${srcpkgname}-${pkgver}/nel/src/3d/font_generator.cpp"
}

build() {
  mkdir -p "$srcdir/build-nel"
  cd "$srcdir/build-nel"
  cmake -Wno-dev "$srcdir/${srcpkgname}-${pkgver}" -DFINAL_VERSION=ON -DWITH_STATIC=OFF -DWITH_NEL_TOOLS=OFF -DWITH_NEL_TESTS=OFF -DWITH_LUA51=ON  -DWITH_NEL_SAMPLES=OFF -DWITH_RYZOM_TOOLS=OFF -DWITH_RYZOM_SERVER=OFF -DWITH_RYZOM_CLIENT=OFF -DWITH_NEL=ON -DWITH_DRIVER_OPENGL=ON -DWITH_DRIVER_OPENAL=ON -DCMAKE_INSTALL_PREFIX=/usr -DRYZOM_ETC_PREFIX=/etc/ryzom -DRYZOM_SHARE_PREFIX=/usr/share/ryzom -DRYZOM_BIN_PREFIX=/usr/bin -DRYZOM_GAMES_PREFIX=/usr/bin -DFREETYPE_INCLUDE_DIRS="/usr/include;/usr/include/freetype2"

  make -j1 all
}

package() {
  cd "$srcdir/build-nel"

  make DESTDIR="$pkgdir/" install
}

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