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.

57 lines
1.4 KiB

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