Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 8th, 2010  |  syntax: None  |  size: 1.70 KB  |  views: 116  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
  2. pkgname=mu-cade
  3. pkgver=0.11
  4. pkgrel=2
  5. pkgdesc="An inventive game by Kenta Cho"
  6. arch=('i686', 'x86_64')
  7. url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/mcd_e.html"
  8. license=('custom')
  9. depends=('libbulletml' 'libgl' 'mesa' 'ode' 'sdl_mixer')
  10. makedepends=('gdc-bin' 'gcc' 'ode-compat')
  11. source=(http://www.asahi-net.or.jp/~cs8k-cyu/windows/mcd0_11.zip
  12.         http://ftp.de.debian.org/debian/pool/main/m/mu-cade/mu-cade_0.11.dfsg1-5.diff.gz
  13.         http://downloads.sourceforge.net/sourceforge/opende/ode-0.10.1.tar.bz2)
  14. md5sums=('59915ec27f7899cdf1e417987ead4ace'
  15.          '2502afdc62bbc43e1468e46690f0cddb'
  16.          '91c396b915539a760617437d56eb1681')
  17.  
  18. build() {
  19.  
  20. #Thanks to Miriam Ruiz and the Debian games team, who did most of the work.
  21.  
  22.  
  23. cd $startdir/src/mcd
  24. patch -p2 <../mu-cade_0.11.dfsg1-5.diff
  25. while read x;do patch -p1<patches/"$x";done <patches/series
  26.  
  27. sed -i s,usr/games,usr/bin,g ./{mu-cade.install,mu-cade.desktop}
  28. sed -i s,share/games,share,g ./{mu-cade-data.install,src/abagames/mcd/barrage.d,src/abagames/util/sdl/texture.d,src/abagames/util/sdl/sound.d,mu-cade.install,mu-cade.desktop}
  29.  
  30. make || return 1
  31. mkdir -p $startdir/pkg/usr/{bin,share}
  32.  
  33. cp -r $startdir/src/mcd $startdir/pkg/usr/share/mu-cade
  34. mv $startdir/pkg/usr/share/mu-cade/mu-cade $startdir/pkg/usr/bin/mu-cade
  35. install -D -m755 $startdir/src/mu-cade_script $startdir/pkg/usr/bin/mu-cade
  36. install -D -m644 $startdir/src/mcd/copyright $startdir/pkg/usr/share/licenses/mu-cade/copyright
  37. install -D -m644 $startdir/src/mcd/mu-cade.desktop $startdir/pkg/usr/share/applications/mu-cade.desktop
  38. install -D -m644 $startdir/src/mcd/mu-cade.xpm $startdir/pkg/usr/share/pixmaps/mu-cade.xpm
  39.  
  40. }