Various compilation scripts & patches for Linux programs.
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.

71 lines
1.5 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: jsteel <mail at jsteel dot org>
  3. # Contributor: Frozen Fox <frozenfoxz@gmail.com>
  4. # Contributor: Aurelien Foret <orelien@chez.com>
  5. pkgname=zsnes
  6. _pkgname=zsnes
  7. pkgver=1.42
  8. pkgrel=3
  9. pkgdesc="Super Nintendo emulator (latest version supporting netplay)"
  10. url="http://zsnes.com"
  11. arch=('i686' 'x86_64')
  12. license=('GPL')
  13. options=(!buildflags)
  14. if [[ $CARCH == "x86_64" ]]; then
  15. depends=(
  16. 'gcc-libs-multilib'
  17. 'lib32-sdl'
  18. 'lib32-libpng>=1.5.0'
  19. 'lib32-libgl'
  20. 'lib32-ncurses'
  21. 'lib32-mesa')
  22. makedepends=(
  23. 'nasm'
  24. 'gcc-multilib'
  25. )
  26. else
  27. depends=(
  28. 'sdl'
  29. 'libpng>=1.5.0'
  30. 'mesa'
  31. )
  32. makedepends=(
  33. 'nasm'
  34. 'gcc'
  35. )
  36. fi
  37. source=(
  38. 'zsnesnet.tar.gz'
  39. 'libpng.patch'
  40. "${pkgname}.desktop"
  41. )
  42. md5sums=('325c22d392fb33f720c6c05625884428'
  43. 'f7366961f21ed63d0844a3a6d4780bcf'
  44. '5fb4df4bc32e1d6b1cffb16d9af6563f')
  45. build() {
  46. cd "${srcdir}"
  47. patch -Np1 -i "${srcdir}"/libpng.patch
  48. if [ $CARCH == "x86_64" ]; then
  49. export CC="gcc -m32"
  50. export CXX="g++ -m32"
  51. fi
  52. chmod +x autogen.sh
  53. ./autogen.sh --prefix=/usr x_libraries=/usr/lib force_arch=i686 \
  54. --enable-release --enable-debug
  55. make
  56. }
  57. package() {
  58. cd "${srcdir}"
  59. make DESTDIR="${pkgdir}" install
  60. install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
  61. install -Dm644 "${srcdir}"/icons/48x48x32.png "${pkgdir}"/usr/share/pixmaps/${pkgname}.png
  62. }