1 # Maintainer: inteliboy <inteliboy@gmail.com>
6 pkgdesc="Trinity Core MMo Server Framework"
8 url="http://www.trinitycore.org"
10 depends=('mysql' 'openssl' 'libmysqlclient' 'mysql-clients' 'zlib')
11 makedepends=('git' 'cmake' 'ace>=5.8.2' 'libtool' 'patch' 'gcc' 'make' 'autoconf' 'automake' 'bin86' 'bison' 'ed' 'fakeroot' 'flex' 'm4' 'pkgconfig')
16 _gitroot=http://github.com/TrinityCore/TrinityCore.git
22 msg "Conecting to GIT server..."
24 if [ -d $_gitname ] ; then
25 cd $_gitname $$ git pull origin master
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout."
33 rm -rf "$srcdir/$_gitname/build"
35 mkdir $srcdir/$_gitname/build
36 git clone "$scrdir/$_gitname" "$srcdir/$_gitname/build"
37 cd "$srcdir/$_gitname/build"
40 cmake ../ -DPREFIX=$pkgdir/usr -DCONF_DIR=$pkgdir/usr/etc -DSQL=1 || return 1