blob: e01f42ef0ae33f3dc68d4a98a4f94337279cb2e9 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Maintainer:Bjoern Bidar <theodorstormgrade@gmail.com
# Maintainer:Jorge Araya Navarro <jorgean@lavabit.com>
#_gui_toolkit=qt # qt or gtk
_build_server=false # 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
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
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
_hg_root='https://bitbucket.org/ryzom/ryzomcore'
_hg_name='ryzomcore'
prepare() {
if [ -d "$_hg_name" ] ; then # fetch sources
cd "$_hg_name"
hg pull && hg update
cd ..
else
hg clone "$_hg_root"
fi
msg2 "hg clone done or server timeout"
}
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"
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
}
if [ $_build_client = true ] ; then
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 -m 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
cp ${srcdir}/ryzom.sh ${pkgdir}/usr/bin/ryzom
chmod +x ${pkgdir}/usr/bin/ryzom
mkdir -p ${pkgdir}/usr/bin
}
fi
if [ $_build_server = true ] ; then
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
# install -m 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
# cp ${srcdir}/ryzom.sh ${pkgdir}/usr/bin/ryzom
#chmod +x ${pkgdir}/usr/bin/ryzom
mkdir -p ${pkgdir}/usr/bin
}
fi
pkgname=ryzom-hg
pkgbase=ryzom-hg
pkgver=20130331
pkgrel=1
pkgdesc="An awesome free software 3D MMORPG game"
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' 'ryzom-client' 'ryzom-hg')
groups=('ryzom')
makedepends=('mercurial' 'cpptest' 'cmake' 'bison')
provides=('ryzom')
source=( 'ryzom.sh' 'ryzom.desktop' )
md5sums=('a5ca7dfae7b9073f78cd1b0b7380755f'
'71d5136d40ec4e76c2ac2b0c9e506aef')
|