updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dolphin-emu-svn-bin / PKGBUILD
blob389f6f8c459e4420af7a4bea008bd928cbdd8a1a
1 # Maintainer:  Devin Cofer <ranguvar{AT]archlinux{DOT]us>
2 # Contributor: Hans-Kristian Arntzen <maister@archlinux.us>
4 pkgname=dolphin-emu-svn-bin
5 pkgver=4467
6 pkgrel=1
7 pkgdesc="GameCube and Wii emulator (Unofficial dev tree build)"
8 arch=('i686' 'x86_64')
9 url="http://www.dolphin-emu.com/"
10 license=('GPL2')
12 depends=('bluez' 'libao' 'portaudio' 'wxgtk>=2.8' 'wxgtk<2.9' 'wiiuse' 'nvidia-cg-toolkit' 'glew' 'sdl' 'libxxf86vm')
13 provides=('dolphin-emu' "dolphin-emu-svn=$pkgver")
14 conflicts=('dolphin-emu' 'dolphin-emu-svn')
16 source=("http://www.cs.huji.ac.il/~elylevy/dolphin/$CARCH/dolphin-$pkgver-release.tar.bz2"
17         'dolphin-emu.desktop')
18 sha256sums=('2c49b6211cbdced639cdd92f31d31aa7a0917ecfcdf6b2154d24c25bf521603c'
19             '6378e5925eb891071c7396656dd0ee1e9f4f26553c964fdaec87154b5b37a193')
20 if [ "$CARCH" == "i686" ]; then
21         sha256sums[0]='25659a821f7e010e9a695f88d6da6d9f591f01016768846b661745ec99cab926'
24 install="$pkgname.install"
26 build() {
27         # Remove SVN leftovers
28         for svndir in $(find . -name '.svn' -type d); do rm -r $svndir; done
30         mkdir -p "$pkgdir/opt/dolphin-emu"
31         cp -r "Binary/Linux-$CARCH/"* "$pkgdir/opt/dolphin-emu/" || return 1
33         mkdir -p "$pkgdir/usr/bin"
34         echo -e "#! /bin/sh\ncd /opt/dolphin-emu ; ./Dolphin" > \
35                 "$pkgdir/usr/bin/dolphin-emu" || return 1
36         chmod +x "$pkgdir/usr/bin/dolphin-emu" || return 1
37         ln -s "$pkgdir/opt/dolphin-emu/dsptool" "$pkgdir/usr/bin/dsptool" || return 1
38         install -Dm644 dolphin-emu.desktop \
39                        "$pkgdir/usr/share/applications/dolphin-emu.desktop" || return 1