Advertisement
Arkranur

libretro-mupen64plus-git

Jan 9th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # Maintainer: Thomas Schneider <maxmusterm@gmail.com>
  2. # Contributor: Arkranur
  3.  
  4. pkgname=libretro-mupen64plus-git
  5. _gitname=mupen64plus-libretro
  6. pkgver=663.6f1f3e9
  7. pkgrel=1
  8. pkgdesc="libretro implementation of mupen64plus with dynarec (even for rpi)"
  9. arch=('i686' 'x86_64' 'arm' 'armv6h')
  10. url="https://github.com/libretro/mupen64plus-libretro"
  11. license=('custom' 'GPL' 'LGPL')
  12. makedepends=('git')
  13. source=("${_gitname}::git://github.com/libretro/${_gitname}.git"
  14. "https://raw.github.com/libretro/libretro-super/master/dist/info/mupen64plus_libretro.info")
  15.  
  16. md5sums=('SKIP'
  17. '2920c345f26fdcaab821e1aaa2681834')
  18.  
  19. pkgver() {
  20. cd "${_gitname}"
  21. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  22. }
  23.  
  24. build() {
  25. cd "${_gitname}"
  26. if [ $CARCH == "armv6h" ]; then
  27. platform=rpi make WITH_DYNAREC=arm #Build for the Raspberry Pi
  28. elif [ $CARCH == "i686" ]; then
  29. make WITH_DYNAREC=x86 #Build for the i686 architecture
  30. else
  31. make WITH_DYNAREC=$CARCH #Build for the x86_64 or other Arm architectures
  32. fi
  33. }
  34.  
  35. package() {
  36. install -Dm644 "${srcdir}/mupen64plus_libretro.info" "${pkgdir}/usr/lib/libretro/libretro-mupen64plus.info"
  37. install -Dm644 "${_gitname}/mupen64plus_libretro.so" "${pkgdir}/usr/lib/libretro/libretro-mupen64plus.so"
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement