PKGBUILD 825 B

123456789101112131415161718192021222324252627
  1. # Maintainer: Steve Engledow <steve@engledow.me>
  2. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  3. pkgname=progress-quest-bin
  4. pkgver=6.4.4
  5. pkgrel=2
  6. pkgdesc='Progress Quest is an antic and fantastical computer role-playing game'
  7. arch=('i686' 'x86_64')
  8. url='http://progressquest.com/'
  9. license=('MIT')
  10. depends=('wine')
  11. provides=('progress-quest')
  12. source=('http://www.progressquest.com/dl/pq6-4-4.zip')
  13. sha256sums=('0c6982f6e9a4270968dfdec2874dc642957bddbdd55f4517fa013692ffe8e67e')
  14. package() {
  15. install -Dm755 "pq.exe" "${pkgdir}/usr/share/progress-quest/pq.exe"
  16. cat > "progress-quest" << EOF
  17. #!/bin/sh
  18. CONFIG_DIR="${XDG_CONFIG_HOME:-${HOME}/.config}/progress-quest"
  19. mkdir -p "${CONFIG_DIR}"
  20. cd "${CONFIG_DIR}"
  21. wine /usr/share/progress-quest/pq.exe
  22. EOF
  23. install -Dm755 "progress-quest" "${pkgdir}/usr/bin/progress-quest"
  24. }