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

Doukutsu Arch Linux PKGBUILD

By: Ideka on May 24th, 2011  |  syntax: Bash  |  size: 2.01 KB  |  views: 233  |  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. # Maintainer: Victor Feight <vrfeight3 at gmail dot com>
  2. # Contributor: Frozen Fox <frozenfoxz at gmail dot com>
  3.  
  4. pkgname=doukutsu
  5. pkgver=1.2
  6. pkgrel=2
  7. pkgdesc="Cave Story linux port by Simon Parzer and Peter Mackay"
  8. url="http://doukutsu.livejournal.com"
  9. arch=('i686' 'x86_64')
  10. if [ "$CARCH" == "i686" ]; then
  11.     depends=('sdl')
  12. else
  13.     depends=('lib32-sdl')
  14. fi
  15. license=('freeware')
  16. source=("http://www.cavestory.org/downloads/linuxdoukutsu-1.01.tar.bz2"
  17.         "http://www.cavestory.org/downloads/linuxDoukutsu-1.2.zip"
  18.         "http://www.cavestory.org/downloads/DoConfigure-r2.zip"
  19.         "doukutsu.desktop"
  20.         "doukutsu-config.desktop"
  21.         "doukutsu.png"
  22.         "doukutsu")
  23. md5sums=('ec08da7c45419bc7740b8149ec7340cf'
  24.          'e73d7330fba3cc5c15f0eeb239df586f'
  25.          '9f5e96d5ff9671691b7c8a41f8fa5880'
  26.          'd2633fb77949eb404f3199191e328bf3'
  27.          'ca872e3276959cb523f57f0785c1a034'
  28.          'd73dee54b24f2ceb21a50e2c8f71da10'
  29.          '0bad0312fd7f924a333ff34bde61d138')
  30. build() {
  31.     cd "${srcdir}/linuxDoukutsu-1.01"
  32.  
  33.     install -dm755 ${pkgdir}/{opt/${pkgname},usr/share/{doc/${pkgname},applications}} || return 1
  34.     cp -r {Config.dat,data,doc,doukutsu} "${pkgdir}/opt/${pkgname}/" || return 1
  35.  
  36.     if [ "$CARCH" == "i686" ]; then
  37.         install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_32bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin" || return 1
  38.     else
  39.         install -Dm755 "${srcdir}/linuxDoukutsu-1.2/doukutsu_64bits" "${pkgdir}/opt/${pkgname}/doukutsu.bin" || return 1
  40.     fi
  41.  
  42.     install -Dm644 ${srcdir}/*.desktop "${pkgdir}/usr/share/applications/" || return 1
  43.     install -Dm644 ${srcdir}/doukutsu.png "${pkgdir}/usr/share/pixmaps/doukutsu.png" || return 1
  44.     install -Dm644 doc/* "${pkgdir}/usr/share/doc/${pkgname}/" || return 1
  45.  
  46.     install -Dm755 ${srcdir}/DoConfigure "${pkgdir}/opt/${pkgname}/DoConfigure" || return 1
  47.     install -Dm755 ${srcdir}/doukutsu "${pkgdir}/usr/bin/doukutsu" || return 1
  48.     ln -s ${pkgdir}/usr/bin/doukutsu "${pkgdir}/usr/bin/cave-story" || return 1
  49. }