updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scummvm-svn / PKGBUILD
blobb9664e041c23d633dfbc3e406a091b46ff77ea27
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>
5 pkgname=scummvm-svn
6 pkgver=49126
7 pkgrel=1
8 pkgdesc="A 'virtual machine' for several classic graphical point-and-click adventure games (SVN version)"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 url="http://www.scummvm.org/"
12 depends=('sdl' 'alsa-lib' 'libmad' 'libvorbis' 'zlib' 'libmpeg2' 'flac>=1.1.4' 'fluidsynth')
13 makedepends=('subversion')
14 source=()
15 provides=('scummvm')
16 conflicts=('scummvm')
17 md5sums=()
19 _svntrunk=https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk
20 _svnmod=scummvm
22 build() {
23   cd "${srcdir}"
25   if [ -d ${_svnmod}/.svn ]; then
26     (cd ${_svnmod} && svn up -r ${pkgver})
27   else
28     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29   fi
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 \
41       --prefix=/usr \
42       --enable-all-engines || return 1
43   make || return 1
44   make DESTDIR="$pkgdir/" install
46   install -D -m 644 dists/scummvm.desktop ${pkgdir}/usr/share/applications/scummvm.desktop