1 # Contributor: Jozef Korencik <joffko@gmail.com>
2 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
7 pkgdesc="Casual game where you need to use both your mind and your reflexes"
9 url="http://code.google.com/p/cooldown-game/"
13 md5sums=('9486f8569608b80725b4d09c20cb0756')
14 source=(cooldown.desktop)
15 _svntrunk=http://cooldown-game.googlecode.com/svn/trunk/
21 if [ -d ${_svnmod}/.svn ]; then
22 (cd ${_svnmod} && svn revert -R .)
23 (cd ${_svnmod} && svn -r ${pkgver} up)
25 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 cd ${srcdir}/${_svnmod}
33 cmake -DCMAKE_BUILD_TYPE=Release \
39 cd ${srcdir}/${_svnmod}
40 mkdir -p ${pkgdir}/usr/share/{cooldown,applications}
41 cp -fR {cooldown,CoolDown.ini} ${pkgdir}/usr/share/cooldown
42 cp -fR data/* ${pkgdir}/usr/share/cooldown
43 install ../cooldown.desktop ${pkgdir}/usr/share/applications
44 mkdir -p ${pkgdir}/usr/bin
45 echo "cd '/usr/share/cooldown/' && ./cooldown" > ${pkgdir}/usr/bin/cooldown.sh
46 chmod a+x ${pkgdir}/usr/bin/cooldown.sh
47 chmod 777 ${pkgdir}/usr/share/cooldown/CoolDown.ini