Advertisement
hauzer

PKGBUILD.hammerfight

Jul 28th, 2011
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.19 KB | None | 0 0
  1. # Maintainer: hauzer <alokinpwn@gmail.com>
  2. pkgname=hammerfight
  3. pkgver=07172011
  4. pkgrel=1
  5. pkgdesc="A unique game where you take control of a flying machine which has giant weapons (hammers, flails) attached to it. You need to fight many enemies troughout the chapters."
  6. arch=('i686')
  7. url="http://www.koshutin.com/"
  8. license=('GPLv2')
  9. source=("hf-linux-${pkgver}-bin")
  10. md5sums=('4b979c6d0741aa0626018cf451309c25')
  11.  
  12. build() {
  13.   echo The installer will now launch. Please set the installation directory to ${srcdir}/opt/${pkgname}
  14.   chmod +x "${srcdir}/hf-linux-${pkgver}-bin"
  15.   "${srcdir}/hf-linux-${pkgver}-bin"
  16. }
  17.  
  18. package() {
  19.   cat > ${pkgname} <<EOF
  20. #!/bin/bash
  21. /opt/${pkgname}/Hammerfight
  22. EOF
  23.  
  24.   cat > ${pkgname}.desktop <<EOF
  25. [Desktop Entry]
  26. Type=Application
  27. Version=1.0
  28. Name=Hammerfight
  29. Icon=/opt/${pkgname}/${pkgname}.png
  30. Exec=${pkgname}
  31. Terminal=false
  32. Categories=Game;
  33. EOF
  34.  
  35.   install -D -m 755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  36.   install -D -m 644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  37.   mkdir -p "${pkgdir}/opt/"
  38.   cp -R "${srcdir}/opt/${pkgname}" "${pkgdir}/opt/"
  39.   chgrp games "${pkgdir}/opt/${pkgname}"
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement