1 # Maintainer: Thomas Krug <phragment@lavabit.com>
5 pkgdesc="A 'virtual machine' for several classic graphical point-and-click adventure games."
7 url="http://www.scummvm.org"
9 depends=('sdl' 'libmad' 'fluidsynth' 'libgl' 'libtheora' 'faad2')
13 replaces=('scummvm-svn')
14 install=${pkgname}.install
16 _gitroot="git://github.com/scummvm/scummvm.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
38 ./configure --backend=sdl \
39 --with-flac-prefix=/usr \
41 --enable-all-engines || return 1
46 cd "$srcdir/$_gitname-build"
48 make DESTDIR="$pkgdir/" install
49 install -D -m 644 dists/scummvm.desktop ${pkgdir}/usr/share/applications/scummvm.desktop