diff options
author | Björn Bidar | 2015-06-13 18:35:59 +0200 |
---|---|---|
committer | Björn Bidar | 2015-06-13 18:35:59 +0200 |
commit | 26321fe98d2b82836876c9e3e0e3d66c462a1059 (patch) | |
tree | 5d4df36e1d3473983af8c26e9ea98b3f8757f4e0 | |
download | aur-26321fe98d2b82836876c9e3e0e3d66c462a1059.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 70 | ||||
-rw-r--r-- | PKGBUILD | 99 | ||||
-rw-r--r-- | ryzom.desktop | 11 | ||||
-rw-r--r-- | ryzom.sh | 9 |
4 files changed, 189 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..093af415a346 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,70 @@ +pkgbase = ryzom-hg + pkgdesc = Ryzom is a Free to Play MMORPG . This version is for playing on an official server or launch a server + pkgver = r5901.5f82c8b8fbec + pkgrel = 1 + url = http://www.ryzom.com/ + arch = i686 + arch = x86_64 + groups = ryzom + license = AGPL3 + makedepends = mercurial + makedepends = cpptest + makedepends = cmake + makedepends = bison + depends = curl + depends = freetype2 + depends = libx11 + depends = mesa + depends = libxxf86vm + depends = openal + depends = freealut + depends = libogg + depends = libvorbis + depends = libxml2 + depends = libpng + depends = libjpeg + depends = rrdtool + depends = libwww + depends = boost + depends = luabind + depends = libsquish + depends = lua51 + depends = lua51-sql-mysql + provides = ryzom + conflicts = ryzom-client-latest-hg + source = ryzom.sh + source = ryzom.desktop + source = hg+https://bitbucket.org/ryzom/ryzomcore + md5sums = a5ca7dfae7b9073f78cd1b0b7380755f + md5sums = 71d5136d40ec4e76c2ac2b0c9e506aef + md5sums = SKIP + +pkgname = ryzom-client-hg + pkgdesc = Ryzom is a Free to Play MMORPG . This version is for playing on an official server + depends = curl + depends = freetype2 + depends = libx11 + depends = mesa + depends = libxxf86vm + depends = openal + depends = freealut + depends = libogg + depends = libvorbis + depends = libxml2 + depends = cmake + depends = libpng + depends = libjpeg + depends = rrdtool + depends = bison + depends = libwww + depends = boost + depends = cpptest + depends = luabind + depends = libsquish + depends = lua51 + depends = lua51-sql-mysql + depends = ryzom-data + +pkgname = ryzom-server-hg + pkgdesc = Ryzom is a Free to Play MMORPG . This is the version to run a server + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5474c697900e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer:Bjoern Bidar <theodorstormgrade@gmail.com +#_gui_toolkit=qt # qt or gtk +_build_server=true # set true to build server (default:false) +_build_client=true # set false to don't build client (default:true) +_CMAKE_COMMON_ARGS=('-DWITH_STATIC=OFF' '-DWITH_NEL_TOOLS=OFF' '-DWITH_NEL_TESTS=OFF' '-DWITH_LUA51=ON' '-DWITH_NEL_SAMPLES=OFF' '-DWITH_RYZOM_TOOLS=OFF'.) # cmake arguments for server and client +_CMAKE_SERVER_ARGS=('-DWITH_RYZOM_SERVER=ON' '-DWITH_RYZOM_CLIENT=OFF' '-DWITH_DRIVER_OPENGL=OFF' '-DWITH_DRIVER_OPENAL=OFF' ) # cmake args for building server +_CMAKE_CLIENT_ARGS=( '-DWITH_RYZOM_SERVER=OFF' '-DWITH_RYZOM_CLIENT=ON' ) # cmake args for building client +pkgname=ryzom-hg +pkgbase=ryzom-hg +pkgver=r5901.5f82c8b8fbec +pkgrel=1 +pkgdesc="Ryzom is a Free to Play MMORPG . This version is for playing on an official server or launch a server" +arch=('i686' 'x86_64') +url="http://www.ryzom.com/" +license=('AGPL3') +depends=('curl' 'freetype2' 'libx11' 'mesa' 'libxxf86vm' 'openal' 'freealut' 'libogg' 'libvorbis' 'libxml2' 'libpng' 'libjpeg' 'rrdtool' 'libwww' 'boost' 'luabind' 'libsquish' 'lua51' 'lua51-sql-mysql') +conflicts=('ryzom-client-latest-hg') +groups=('ryzom') +makedepends=('mercurial' 'cpptest' 'cmake' 'bison') +provides=('ryzom') +_hg_name='ryzomcore' +source=( 'ryzom.sh' 'ryzom.desktop' "hg+https://bitbucket.org/ryzom/$_hg_name") +md5sums=('a5ca7dfae7b9073f78cd1b0b7380755f' + '71d5136d40ec4e76c2ac2b0c9e506aef' + 'SKIP') + + +pkgver() { + cd "$_hg_name" + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +} + +case $_gui_toolkit in + qt) _CMAKE_COMMON_ARGS=( ${_CMAKE_COMMON_ARGS_ARGS[*]} '-DWITH_QT=ON' ) ;; + gtk) _CMAKE_COMMON_ARGS=( ${_CMAKE_COMMON_ARGS_ARGS[*]} '-DWITH_GTK=ON' ) ;; +esac + + + +prepare() { + cd $srcdir/$_hg_name/code + + + for lib in WWWCACHE WWWSTREAM WWWFTP WWWGOPHER WWWNEWS WWWTELNET WWWDIR \ + WWWINIT WWWMUX WWWXML WWWZIP XMLPARSE XMLTOK WWWSSL MD5 + do sed "s|LIB${lib}_LIBRARY OPTIONAL|LIB${lib}_LIBRARY REQUIRED|" \ + -i CMakeModules/FindLibwww.cmake; done +} +build() { + cd $_hg_name + + if [ $_build_client = true ] ; then + mkdir -p "$srcdir/build-client" + cd "$srcdir/build-client" + msg "client is $_build_client, building client" + cmake -b "$srcdir/$_hg_name/code" ${_CMAKE_COMMON_ARGS_ARGS[*]} ${_CMAKE_CLIENT_ARGS[*]} -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 + msg "Starting make, to build client" + make + + fi + + if [ $_build_server = true ] ; then + mkdir -p "$srcdir/build-server" + cd "$srcdir/build-server" + msg "client is $_build_server, building server"w + cmake -b "$srcdir/$_hg_name/code" ${_CMAKE_COMMON_ARGS_ARGS[*]} ${_CMAKE_SERVER_ARGS[*]} -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 + msg "Starting make, to build server" + make + fi +} + +package_ryzom-hg() { + pkgdesc="Ryzom is a Free to Play MMORPG . This version is for playing on an official server or launch a server" +} + +package_ryzom-client-hg() { + pkgdesc="Ryzom is a Free to Play MMORPG . This version is for playing on an official server" + depends=( 'curl' 'freetype2' 'libx11' 'mesa' 'libxxf86vm' 'openal' 'freealut' 'libogg' 'libvorbis' 'libxml2' 'cmake' 'libpng' 'libjpeg' 'rrdtool' 'bison' 'libwww' 'boost' 'cpptest' 'luabind' 'libsquish' 'lua51' 'lua51-sql-mysql' 'ryzom-data' ) + cd "$srcdir/build-client" + make DESTDIR="$pkgdir/" install + install -Dm 644 ${srcdir}/ryzom.desktop ${pkgdir}/usr/share/applications + sed -ie 's/\/usr\/bin\/ryzom_client/ryzom/' ${pkgdir}/usr/share/applications/ryzom.desktop # replace ryzom_client with our script + install -Dm755 ${srcdir}/ryzom.sh ${pkgdir}/usr/bin/ryzom +} + +package_ryzom-server-hg() { + pkgdesc="Ryzom is a Free to Play MMORPG . This is the version to run a server" + cd "$srcdir/build-server" + make DESTDIR="$pkgdir/" install +} + +if [ $_build_client = true ] ; then + true && pkgname=( 'ryzom-client-hg' ) +fi + +if [ $_build_server = true ] ; then + true && pkgname=( 'ryzom-client-hg' 'ryzom-server-hg') +fi + diff --git a/ryzom.desktop b/ryzom.desktop new file mode 100644 index 000000000000..d9006359388a --- /dev/null +++ b/ryzom.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Ryzom +Type=Application +GenericName=ryzom +Comment=Ryzom +Exec=/usr/bin/ryzom +Icon=/usr/share/ryzom/data/ryzom.png +Terminal=false +Hidden=false +Categories=Game;RolePlaying; diff --git a/ryzom.sh b/ryzom.sh new file mode 100644 index 000000000000..e3cff2c64971 --- /dev/null +++ b/ryzom.sh @@ -0,0 +1,9 @@ +#!/bin/sh +if groups | grep games > /dev/null 2>&1 ; then + ryzom_sync + exec ryzom_client + +else + echo "you need to be in games group to run ryzom" + exit 1 +fi |