updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / springlobby-git / PKGBUILD
blobbac59e00fa18c7a7231d5a5ce8f7926f8fdc0b6d
1 # Maintainer: Erdbeerkaese (erdbeerkaese AT gawab DOT com)
2 # Contributor: DuGi <dugi@irc.pl>
4 pkgname=springlobby-git
5 pkgver=20110820
6 pkgrel=1
7 pkgdesc="A free cross-platform lobby client for the Spring RTS project, development version."
8 arch=('i686' 'x86_64')
9 url="http://springlobby.info/"
10 license=('GPL2')
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
17 source=()
18 _gitroot="git://springlobby.info/git/buildbot/springlobby.git"
19 _gitname="springlobby"
21 build() {
22     cd "$srcdir"
23     msg "Connecting to GIT server...."
25     if [ -d $_gitname ] ; then
26         cd $_gitname && git pull origin
27         msg "The local files are updated."
28     else
29         git clone $_gitroot $_gitname --depth=1
30     fi
32     msg "GIT checkout done or server timeout"
33     msg "patching source..."
34     
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
38     
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' \
45           "$srcdir/$_gitname"
46     make
49 package() {
50     cd "$srcdir/$_gitname-build"
51     make DESTDIR=$pkgdir install || return 1
54 # vim: sw=2:ts=2 et: