hauzer

PKGBUILD.AYIM

Jul 28th, 2011
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: hauzer <alokinpwn@gmail.com>
  2. pkgname=AndYetItMoves
  3. pkgver=1.2.0
  4. pkgrel=1
  5. pkgdesc="Rotate the world around you and take advantage of the environment to reach the goal."
  6. arch=('i686')
  7. url="http://www.andyetitmoves.net/"
  8. license=('GPLv2')
  9. source=("${pkgname}-${pkgver}_i386.tar.gz")
  10. md5sums=('5f8b1560eb09fba5fb9718d30eaecccf')
  11.  
  12. package() {
  13.   cat > andyetitmoves <<EOF
  14. #!/bin/bash
  15. /opt/${pkgname}/${pkgname}
  16. EOF
  17.  
  18.   cat > ${pkgname}.desktop <<EOF
  19. [Desktop Entry]
  20. Type=Application
  21. Version=1.0
  22. Name=And Yet It Moves
  23. Icon=/opt/${pkgname}/icons/32x32.png
  24. Exec=andyetitmoves
  25. Terminal=false
  26. Categories=Game;
  27. EOF
  28.  
  29.   install -D -m 755 "${srcdir}/andyetitmoves" "${pkgdir}/usr/bin/andyetitmoves"
  30.   install -D -m 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  31.   mkdir -p "${pkgdir}/opt/"
  32.   cp -R "${srcdir}/${pkgname}" "${pkgdir}/opt/"
  33. }
RAW Paste Data