1 # Contributer: BeholdMyGlory <larvid@gmail.com>
3 pkgname='mupen64plus-core-hg'
6 pkgdesc="Core of Mupen64Plus v2.0, a Nintendo 64 emulator. Latest hg pull."
7 url="http://bitbucket.org/richard42/mupen64plus-core/"
10 groups=('mupen64plus-hg')
11 conflicts=('mupen64plus')
12 depends=('sdl' 'libpng' 'mesa' 'freetype2')
13 makedepends=('mercurial')
15 _hgroot='http://bitbucket.org/richard42'
16 _hgrepo='mupen64plus-core'
22 if [ -d $_hgrepo ]; then
23 cd $_hgrepo && hg pull -u
25 hg clone "${_hgroot}/${_hgrepo}"
29 make -C projects/unix all || return 1
31 mkdir -p "${pkgdir}/usr/lib"
32 mkdir -p "${pkgdir}/usr/share/mupen64plus"
33 mkdir -p "${pkgdir}/usr/include/mupen64plus"
35 cp -P projects/unix/*.so.* "${pkgdir}/usr/lib" || return 1
36 cp data/* "${pkgdir}/usr/share/mupen64plus" || return 1
37 cp src/api/m64p_*.h "${pkgdir}/usr/include/mupen64plus" || return 1