updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / scummvm-git / PKGBUILD
blob110cebd7f2e92cb53596535b356753193158db44
1 # Maintainer: Thomas Krug <phragment@lavabit.com>
2 pkgname=scummvm-git
3 pkgver=20111209
4 pkgrel=2
5 pkgdesc="A 'virtual machine' for several classic graphical point-and-click adventure games."
6 arch=('i686' 'x86_64')
7 url="http://www.scummvm.org"
8 license=('GPL')
9 depends=('sdl' 'libmad' 'fluidsynth' 'libgl' 'libtheora' 'faad2')
10 makedepends=('git')
11 provides=('scummvm')
12 conflicts=('scummvm')
13 replaces=('scummvm-svn')
14 install=${pkgname}.install
16 _gitroot="git://github.com/scummvm/scummvm.git"
17 _gitname="scummvm"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
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 \
40               --prefix=/usr \
41               --enable-all-engines || return 1
42   make || return 1
45 package() {
46   cd "$srcdir/$_gitname-build"
48   make DESTDIR="$pkgdir/" install
49   install -D -m 644 dists/scummvm.desktop ${pkgdir}/usr/share/applications/scummvm.desktop
50