1 # Maintainer: guini <sidtrun@googlemail.com>
2 # Contributor: Forrest Loomis <cybercyst _ at _ gmail dot com>
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
4 # Contributor: fana-m <geminin@gmx.net>
9 pkgdesc="Free Clone of Master of Orion."
10 url="http://www.freeorion.org/index.php/Main_Page"
11 arch=('i686' 'x86_64')
13 depends=('boost' 'ogre' 'bullet' 'python2' 'sdl' 'freealut' 'gigi-svn' 'graphviz' 'libvorbis' 'libogg' 'desktop-file-utils')
14 makedepends=('subversion' 'cmake')
15 provides=('freeorion')
16 conflicts=('freeorion')
17 install=('freeorion.install')
22 md5sums=('7064e5b16d222322ce90cd4598eec64e'
23 'f137c3e1eec97982755f748b9de5fc6e'
24 'e214e8faa3fa93d79c649d2cae8f8371'
25 '837e28e5dc30dbb67d7a9dd10ae9036e')
28 _svntrunk=https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/
34 msg "Connecting to SVN server...."
36 if [[ -d "$_svnmod/.svn" ]]; then
37 (cd "$_svnmod" && svn up -r "$pkgver")
39 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
42 msg "SVN checkout done or server timeout"
44 rm -rf "$srcdir/$_svnmod-build"
45 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
46 cd "$srcdir/$_svnmod-build"
48 #Build and install the package
49 #export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
53 cmake -DCMAKE_INSTALL_PREFIX=/opt/freeorion-svn
56 make DESTDIR=$pkgdir install
59 #Fix ogre_plugins.cfg to find our OGRE installation
60 install -Dm644 ${srcdir}/freeorion/ogre_plugins.cfg ${pkgdir}/opt/freeorion-svn/ogre_plugins.cfg
61 sed -i 's|PluginFolder=.|PluginFolder=/usr/lib/OGRE/|g' ${pkgdir}/opt/freeorion-svn/ogre_plugins.cfg
64 mkdir -p ${pkgdir}/usr/bin
65 install -D -m755 ${srcdir}/freeorion.sh ${pkgdir}/usr/bin/freeorion
67 #Install the icons and .desktop files
68 install -D -m644 ${srcdir}/freeorion.png ${pkgdir}/usr/share/pixmaps/freeorion.png
69 install -D -m644 ${srcdir}/freeorion.desktop ${pkgdir}/usr/share/applications/freeorion.desktop
71 rm -rf ${srcdir}/${_svnmod}-build
74 # vim:set ts=2 sw=2 et: