1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
6 pkgdesc="An open source vehicle simulator based on soft-body physics"
8 url="http://www.rigsofrods.com"
10 depends=('angelscript' 'caelum-hg' 'mygui-svn' 'socketw' 'ogre' 'openal' 'ogre-pagedgeometry' 'wxgtk-2.9')
11 optdepends=('rigsofrods-content-pack: Official contents pack')
12 makedepends=('cmake' 'subversion')
13 conflicts=('rigsofrods')
14 provides=('rigsofrods')
15 backup=('opt/rigsofrods/plugins.cfg')
20 md5sums=('4a17e366ecfdb6f43ab448a45863a760'
21 'f26d4c5e8ecbb799095452c5d9034625'
22 'b4763676cfc156c854aeaa3481772291'
23 'b1b8a67e7402f1fbbcf14dbf03303415')
26 _svntrunk="https://rigsofrods.svn.sourceforge.net/svnroot/rigsofrods/trunk"
30 mkdir -p ~/.subversion; touch ~/.subversion/servers
31 msg "Connecting to SVN server..."
32 msg "Checking out $_svnmod"
33 yes "p" | svn co "$_svntrunk" "$_svnmod"
34 msg "SVN checkout done or server timeout"
36 msg "Starting build..."
39 -DROR_BUILD_CONFIGURATOR=TRUE \
40 -DROR_BUILD_CONVERTER=TRUE \
41 -DROR_BUILD_SIM=TRUE \
42 -DROR_BUILD_TOOLS=TRUE \
43 -DROR_USE_MYGUI=TRUE \
44 -DROR_USE_OPENAL=TRUE \
45 -DROR_USE_SOCKETW=TRUE \
46 -DROR_USE_PAGED=TRUE \
47 -DROR_USE_CAELUM=TRUE \
48 -DROR_USE_ANGELSCRIPT=TRUE \
50 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.9 \
51 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.9 \
52 -DSOCKETW_INCLUDE_DIRS=/usr/include \
53 -DSOCKETW_LIBRARIES=/usr/lib/libSocketW.so \
54 -DCMAKE_PREFIX_PATH=/opt/rigsofrods .
60 svn export "$srcdir/ror-trunk/bin" "$pkgdir/opt/rigsofrods"
61 cp "$srcdir"/{ror-trunk/bin/{RoR,rorconfig,libangelscript_addons.a},plugins.cfg} "$pkgdir/opt/rigsofrods"
63 install -Dm 644 "$srcdir/RoR.png" "$pkgdir/usr/share/pixmaps/RoR.png"
64 install -Dm 644 "$srcdir/RoR.desktop" "$pkgdir/usr/share/applications/RoR.desktop"
65 install -Dm 644 "$srcdir/rorconfig.desktop" "$pkgdir/usr/share/applications/rorconfig.desktop"