hauzer

PKGBUILD.VVVVVV

Jul 28th, 2011
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: hauzer <alokinpwn@gmail.com>
  2. pkgname=VVVVVV
  3. pkgver=2.01
  4. pkgrel=1
  5. pkgdesc="A horrible disaster has happened! Your spaceship malfunctioned and has randomly teleported you and your crewmates around. Try to find all of them and unfold the mistery!"
  6. arch=('i686 x86_64')
  7. url="http://thelettervsixtim.es/"
  8. license=('GPLv2')
  9. options=('!strip')
  10. source=("${pkgname}_${pkgver}_Linux.tar.gz")
  11. md5sums=('54d3679da69d92adb65fe9633f3c67d7')
  12.  
  13. package() {
  14.   cat > ${pkgname}.sh <<EOF
  15. #!/bin/bash
  16. /opt/${pkgname}/${pkgname}
  17. EOF
  18.  
  19.   cat > ${pkgname}.desktop <<EOF
  20. [Desktop Entry]
  21. Type=Application
  22. Version=1.0
  23. Name=${pkgname}
  24. Icon=/opt/${pkgname}/data/icons/32.png
  25. Exec=andyetitmoves
  26. Terminal=false
  27. Categories=Game;
  28. EOF
  29.  
  30.   install -D -m 755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
  31.   install -D -m 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  32.   mkdir -p "${pkgdir}/opt/"
  33.   cp -R "${srcdir}/${pkgname}" "${pkgdir}/opt/"
  34. }
RAW Paste Data