summaryrefslogtreecommitdiff
path: root/pcr/nel-hg
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/nel-hg')
-rw-r--r--pcr/nel-hg/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/pcr/nel-hg/PKGBUILD b/pcr/nel-hg/PKGBUILD
new file mode 100644
index 000000000..c0ab743f8
--- /dev/null
+++ b/pcr/nel-hg/PKGBUILD
@@ -0,0 +1,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')
+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.parabolagnulinux.org/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: