1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Dmitry N. Shilov <stormblast@land.ru>
3 # Contributor: Sebastian Hase <sebastian_hase@gmx.de>
4 # Contributor: Joe Davison <joe@thosedamnpeanuts.com>
8 pkgdesc="A 'virtual machine' for several classic graphical point-and-click adventure games (SVN version)"
11 url="http://www.scummvm.org/"
12 depends=('sdl' 'alsa-lib' 'libmad' 'libvorbis' 'zlib' 'libmpeg2' 'flac>=1.1.4' 'fluidsynth')
13 makedepends=('subversion')
19 _svntrunk=https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk
25 if [ -d ${_svnmod}/.svn ]; then
26 (cd ${_svnmod} && svn up -r ${pkgver})
28 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
31 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
34 [[ -d "${srcdir}/${_svnmod}-build" ]] && rm -r "${srcdir}/${_svnmod}-build"
35 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
36 cd "${srcdir}/${_svnmod}-build"
38 ./configure --backend=sdl \
39 --with-mpeg2-prefix=/usr \
40 --with-flac-prefix=/usr \
42 --enable-all-engines || return 1
44 make DESTDIR="$pkgdir/" install
46 install -D -m 644 dists/scummvm.desktop ${pkgdir}/usr/share/applications/scummvm.desktop