1 # Maintainer: Erdbeerkaese (erdbeerkaese AT gawab DOT com)
2 # Contributor: DuGi <dugi@irc.pl>
4 pkgname=springlobby-git
7 pkgdesc="A free cross-platform lobby client for the Spring RTS project, development version."
9 url="http://springlobby.info/"
11 depends=('wxgtk' 'libnotify' 'openal' 'curl' 'hicolor-icon-theme' 'libtorrent-rasterbar')
12 optdepends=('sdl' 'sdl_sound' 'sdl_mixer')
13 makedepends=('boost' 'asio' 'cmake' 'git')
14 conflicts=('springlobby')
15 provides=('springlobby')
16 install=springlobby.install
18 _gitroot="git://springlobby.info/git/buildbot/springlobby.git"
19 _gitname="springlobby"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname --depth=1
32 msg "GIT checkout done or server timeout"
33 msg "patching source..."
35 cd "$srcdir/$_gitname"
36 sed -i "s|/usr/bin/awk|/bin/awk|g" tools/test-susynclib.awk
37 sed -i "s/boost_system-mt/boost_system/g" CMakeLists.txt
39 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 mkdir "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
43 export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
44 cmake -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
50 cd "$srcdir/$_gitname-build"
51 make DESTDIR=$pkgdir install || return 1