updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dolphin-emu-svn / PKGBUILD
blob3a169e2c50e57639db1ed3010e385b23a9daf2be
1 # Maintainer: Joe Amenta <amentajo@msu.edu>
2 # Original Maintainer:  Devin Cofer <ranguvar@archlinux.us>
3 # Contributor: Hans-Kristian Arntzen <maister@archlinux.us>
4 # Contributor: Zephyr
5 # Special thanks to Zhou Xin <soul916@hotmail.com> for rewriting this to use cmake
7 pkgname=dolphin-emu-svn
8 pkgver=6615
9 pkgrel=2
10 pkgdesc="A GameCube and Wii emulator (Dev tree)"
11 arch=('i686' 'x86_64')
12 url="http://www.dolphin-emu.com/"
13 license=('GPL2')
15 makedepends=('subversion' 'cmake' 'glproto' 'opencl-headers')
16 depends=('sdl' 'libxxf86vm' 'libao' 'wxgtk>=2.8' 'wxgtk<2.9' 'wiiuse' 'nvidia-cg-toolkit' 'glew' 'mesa' 'libgl')
17 provides=("dolphin-emu=${pkgver}-${pkgrel}")
18 conflicts=('dolphin-emu' 'dolphin-emu-svn-bin' )
20 source=('dolphin-emu.desktop'
21         'Dolphin_Logo.png')
23 sha256sums=('1cf1cc034ad03cf068d39fd3bac0103dfb663695966a6846e530d8b8cb363470'
24             '4ef79175305df7bb9201931870c4bedc5eda9c94b65311973dfd41c1128784d1')
26 _svntrunk="http://dolphin-emu.googlecode.com/svn/trunk"
27 _svnmod="dolphin-emu-svn"
30 build() {
31         cd "${srcdir}"
33         if [ -d "${_svnmod}/.svn" ]; then
34                 (cd $_svnmod && svn up -r $pkgver)
35         else
36                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
37         fi
39         msg "SVN checkout done or server timeout"
40         msg "Starting make..."
42         rm -rf "$srcdir/$_svnmod-build"
43         cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
44         mkdir -p "${srcdir}/${_svnmod}-build/build"
45         cd "${_svnmod}-build/build"
46         
47         cmake .. -DCMAKE_INSTALL_PREFIX=/usr
48         make
50 package() {
51         cd "${srcdir}/${_svnmod}-build/build"
53         make DESTDIR=${pkgdir} install
55         install -Dm644 "${srcdir}/dolphin-emu.desktop" "${pkgdir}/usr/share/applications/dolphin-emu.desktop"
56         install -Dm644 "${srcdir}/Dolphin_Logo.png" "${pkgdir}/usr/share/icons/dolphin-emu.png"