1 # Maintainer: Twl <bladex@index.hu>
5 pkgdesc="Open Source World of Warcraft Emulator"
7 url="http://www.arcemu.org/"
9 depends=('pcre' 'zlib' 'openssl')
10 makedepends=('gcc' 'automake' 'autoconf' 'fakeroot' 'subversion' 'libmysqlclient')
12 source=(remove-as--need.patch fixvmap.patch wflags.patch)
13 md5sums=('1e835419e37b9bbc2e792689b99dfc4f' '68137a4aac04e6b5a4f312aed46885d4' 'b6cbfd94c6701d63cebde6cdde40acda')
15 _svntrunk=svn://arcemu.info/svn/trunk
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver)
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 if [ "$?" = "0" ]; then
28 (msg "SVN checkout successful.")
30 (msg "SVN checkout failed." && return 1)
33 msg "Starting make..."
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
43 patch -Np0 -i "$srcdir/remove-as--need.patch" || return 1
44 msg "Patching vmap in order to compile..."
45 patch -Np0 -i "$srcdir/fixvmap.patch" || return 1
46 msg "Patching configure.ac, setting no warning mode."
47 patch -Np0 -i "$srcdir/wflags.patch" || return 1
48 rm -fr build && mkdir build || return 1
49 autoreconf -fi || return 1
50 ./configure --prefix="$srcdir/$_svnmod-build/build" --enable-optimize || return 1
51 sh make_precompiled_header.sh || return 1
53 make -j8 DESTDIR="$pkgdir/" install || return 1
55 install -Dm 644 COPYING \
56 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"