blob: 01722ab349fde3c96a8054692a1df39974c11f94 (
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>
# Maintainer (aur): Bjoern Bidar <theodorstormgrade@gmail.com>
pkgname='ryzom-hg'
_hgver=ce26956d3a4a
pkgver=20130727
pkgrel="5"
options=(debug strip) # there is a segmentation fault on ryzom_client executable
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-svn' 'lua51' 'lua51-sql-mysql')
makedepends=('mercurial' 'cpptest' 'cmake' 'bison')
source=("libre://$pkgname-$pkgver.tar.gz"
'ryzom.desktop')
mksource=(".$pkgname-$pkgver::hg+https://bitbucket.org/ryzom/ryzomcore#revision=${_hgver}"
'ryzom.desktop')
_CAMAKE_COMMON_ARGS=('-DWITH_STATIC=OFF' '-DWITH_NEL_TOOLS=OFF' '-DWITH_NEL_TESTS=OFF' '-DWITH_LUA51=ON' '-DWITH_NEL_SAMPLES=OFF')
_CMAKE_BOTH_ARGS=('-DWITH_RYZOM_SERVER=OFF' '-DWITH_RYZOM_CLIENT=ON' '-DWITH_NEL=ON' '-DWITH_DRIVER_OPENGL=ON' '-DWITH_DRIVER_OPENAL=ON')
mksource() {
rm -rf "$srcdir/$pkgname-$pkgver"
cp "$srcdir/ryzom.desktop" "$srcdir/.$pkgname-$pkgver/code"
cp -a "$srcdir/.$pkgname-$pkgver/code" "${srcdir}/${pkgname}-${pkgver}"
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake -b -Wno-dev "$srcdir/${pkgname}-${pkgver}" ${_CMAKE_COMMON_ARGS[*]} ${_CMAKE_BOTH_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
make all
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
install -Dm 644 "$srcdir/${pkgname}-${pkgver}/ryzom.desktop" "$pkgdir/usr/share/applications/"
}
mksha256sums=('SKIP'
'722c60ceb198214620b11a0866f458578e1128d39e63274ea8b43c1ed96ff196')
sha256sums=('a8c90f3f41fb3d497022a2d14a9aa39352557f5745f97b93d0bed61cebf85402'
'722c60ceb198214620b11a0866f458578e1128d39e63274ea8b43c1ed96ff196')
|