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.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Maintainer: Juan Pablo Santos <santos(dot)REMOVETHISjuanpablo(at)gmail(dot)com>
  2. pkgname='visualboyadvance'
  3. pkgver='1.8.0.dfsg'
  4. pkgrel=1
  5. pkgdesc='Emulator for VBA'
  6. url="http://sourceforge.net/projects/vba/"
  7. arch=('i686' 'x86_64')
  8. license=('GPLv2')
  9. makedepends=('automake-1.7')
  10. depends=('sdl' 'gtk2' 'gtkmm')
  11. install=${pkgname}.install
  12. source=("http://ftp.us.debian.org/debian/pool/main/v/visualboyadvance/${pkgname}_${pkgver}.orig.tar.gz"
  13. "http://ftp.us.debian.org/debian/pool/main/v/visualboyadvance/${pkgname}_${pkgver}-2.debian.tar.gz")
  14. md5sums=('f939b3700c7e2519a420e7f4da843e03'
  15. '59a313867f09f0d7054a2b703883d201')
  16. prepare() {
  17. cp $srcdir/debian/patches/*.patch $srcdir/VisualBoyAdvance-1.8.0/
  18. pushd $srcdir/VisualBoyAdvance-1.8.0
  19. patch -p1 < 01_use_dot_dir.patch
  20. patch -p1 < 02_amd64_build_fix.patch
  21. patch -p1 < 03_translation_swedish.patch
  22. patch -p1 < 04_fix_gtk_with_DBKPT_SUPPORT.patch
  23. patch -p1 < 05_translation_brazilian.patch
  24. patch -p1 < 07_update_autoconf_macros.patch
  25. patch -p1 < 08_gvba_load_gb_rom.patch
  26. patch -p1 < 09_deprecatedsigc++.patch
  27. patch -p1 < 10_fix_typecast.patch
  28. patch -p1 < 11_libpng1.5.patch
  29. patch -p1 < 12_vba-linux-sdl.patch
  30. patch -p1 < 13_debugger_format.patch
  31. patch -p1 < 14_dont_rebuild_po_files.patch
  32. pushd $srcdir/VisualBoyAdvance-1.8.0/po
  33. for f in $(ls *.po | sed 's/.po//'); do
  34. msgfmt -o $f.gmo $f.po
  35. done
  36. popd
  37. popd
  38. }
  39. build() {
  40. pushd $srcdir/VisualBoyAdvance-1.8.0/
  41. ./configure --enable-gtk=2.4 --without-mmx --prefix=/usr
  42. make
  43. popd
  44. }
  45. package() {
  46. pushd $srcdir/VisualBoyAdvance-1.8.0/
  47. make DESTDIR=$pkgdir install
  48. mkdir $pkgdir/usr/share/pixmaps $pkgdir/usr/share/applications
  49. cp $srcdir/debian/VisualBoyAdvance-gtk-32x32.xpm $pkgdir/usr/share/pixmaps/
  50. cp $srcdir/debian/VisualBoyAdvance.desktop $pkgdir/usr/share/applications/
  51. }