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

vvvvvv

By: a guest on Jul 27th, 2011  |  syntax: None  |  size: 1.53 KB  |  views: 164  |  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: gadget3000 <gadget3000 at msn dot com>
  2. # Contributor: mikers <mikeonthecomputer at gmail dot com>
  3.  
  4. pkgname=vvvvvv
  5. _pkgname=VVVVVV
  6. pkgver=2.0
  7. build=3
  8. pkgrel=4
  9. pkgdesc="A retro styled 2D platformer"
  10. arch=('i686' 'x86_64')
  11. url="http://thelettervsixtim.es/"
  12. license=('commercial')
  13. depends=('libjpeg6' 'libtiff4' 'slang' 'libcaca' 'aalib')
  14. source=("${pkgname}.desktop")
  15. _gamepkg="${_pkgname}_${pkgver}_Linux${build}.tar.gz"
  16. sha256sums=('a5eea031606f206b14f752eee7079fb18b6462fd751087d4641ca1831beb867f')
  17.  
  18. build() {
  19.     cd ${srcdir}
  20.  
  21.   msg "You need a full copy of this game in order to install it"
  22.   msg "Searching for \"${_gamepkg}\"\
  23.   in dir: $(readlink -f ${startdir})"
  24.   pkgpath=${startdir}
  25.  
  26.   if [[ ! ( -f "${startdir}/${_gamepkg}" ) ]]; then
  27.     error "Game package not found, please type absolute path to game setup package (/home/joe):"
  28.     read pkgpath
  29.     if [[ ! ( -f "${pkgpath}/${_gamepkg}" ) ]] ; then
  30.        error "Unable to find game package." && return 1
  31.    fi
  32.   fi
  33.   msg "Found game package, installing..."
  34.  
  35.   ln -fs "${pkgpath}/${_gamepkg}" .
  36.   install -d ${pkgdir}/opt/
  37.   tar xzf ${_gamepkg} -C ${pkgdir}/opt/
  38.   install -d ${pkgdir}/usr/bin
  39.   ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${pkgname}
  40.  
  41.   # Install the icon file
  42.   install -D -m 644 ${pkgdir}/opt/${_pkgname}/data/icons/32_2.png \
  43.       ${pkgdir}/usr/share/pixmaps/vvvvvv_icon.png
  44.  
  45.   # Install desktop file
  46.   install -D -m 644 ${srcdir}/${pkgname}.desktop \
  47.       ${pkgdir}/usr/share/applications/${pkgname}.desktop
  48. }
clone this paste RAW Paste Data