updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / desmume-svn / PKGBUILD
blob63d32701327dab99ccef472b8b753bf3ce967e95
1 # Contributor: Anton Shestakov <engored*ya.ru>
2 # Maintainer: Anton Shestakov <engored*ya.ru>
4 pkgname=desmume-svn
5 pkgver=4127
6 pkgrel=1
7 pkgdesc='Nintendo DS emulator, svn version'
8 url='http://desmume.org/'
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=('agg' 'gtkglext' 'libglade' 'libpcap' 'mesa' 'openal' 'sdl')
12 makedepends=('autoconf' 'automake' 'intltool' 'pkg-config' 'subversion')
13 conflicts=('desmume' 'desmume-cvs')
14 provides=('desmume')
16 _svntrunk='https://desmume.svn.sourceforge.net/svnroot/desmume/trunk/desmume'
17 _svnmod='desmume'
19 build() {
20   cd "$srcdir"
22   if [ -d "${_svnmod}/.svn" ]; then
23     (cd "$_svnmod" && svn up -r $pkgver)
24   else
25     svn co "$_svntrunk" --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg 'SVN checkout done or server timeout'
29   msg 'Starting make...'
31   rm -rf "${_svnmod}-build"
32   cp -r "$_svnmod" "${_svnmod}-build"
33   cd "${_svnmod}-build"
35   ./autogen.sh
37   # --enable-hud        Enable HUD rendering, requires libagg
38   # --enable-openal     enable experimental OpenAL microphone input
39   # --enable-wifi       enable experimental wifi comm support (needs libpcap)
40   ./configure --enable-hud --enable-openal --enable-wifi --prefix=/usr
42   make
45 package() {
46   cd "${srcdir}/${_svnmod}-build"
47   make DESTDIR="${pkgdir}" install