No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. _pkgname=desmume
  2. pkgname=${_pkgname}-git
  3. pkgdesc='Nintendo DS emulator'
  4. url='http://desmume.org/'
  5. arch=('i686' 'x86_64')
  6. license=('GPL')
  7. _relver=0.9.11
  8. pkgver=${_relver}.r800.e29e825d
  9. pkgrel=2
  10. depends=('agg'
  11. 'gtkglext'
  12. 'lua51'
  13. 'libgl'
  14. 'openal'
  15. 'sdl'
  16. 'soundtouch')
  17. makedepends=('autoconf'
  18. 'automake'
  19. 'pkg-config'
  20. 'git'
  21. 'lua')
  22. provides=('desmume')
  23. replaces=('desmume-sourceforge'
  24. 'desmume-svn'
  25. 'desmume-jit-svn')
  26. conflicts=("${provides[@]}" "${replaces[@]}")
  27. source=('git+https://github.com/TASVideos/desmume.git')
  28. sha512sums=('SKIP')
  29. _builddir="${_pkgname}/src/frontend/posix"
  30. pkgver() {
  31. cd "${srcdir}/${_pkgname}"
  32. echo ${_relver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  33. }
  34. prepare(){
  35. cd "${srcdir}/${_pkgname}/${_builddir}"
  36. # lua5.1 package is named lua51 on Arch
  37. # we could probably just make it compile against the current lua
  38. sed -i 's/lua5.1/lua51/' configure.ac
  39. }
  40. build() {
  41. cd "${srcdir}/${_pkgname}/${_builddir}"
  42. ./autogen.sh
  43. # Hud causes segfault in gtk version. Wifi doesn't really work.
  44. ./configure \
  45. --prefix=/usr \
  46. --enable-osmesa \
  47. --enable-glx \
  48. --enable-hud \
  49. --enable-openal
  50. make
  51. }
  52. package() {
  53. cd "${srcdir}/${_pkgname}/${_builddir}"
  54. make DESTDIR="${pkgdir}" install
  55. }