summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d424fb93136d7406ea87d081f8a4ad8e3643af06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Steve Engledow <steve@engledow.me>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>

pkgname=progress-quest-bin
pkgver=6.4.4
pkgrel=4
pkgdesc='An antic and fantastical computer role-playing game'
arch=(any)
url='http://progressquest.com'
license=('MIT')
depends=(bash wine)
provides=(progress-quest)
source=(
  'http://www.progressquest.com/dl/pq6-4-4.zip'
  'http://progressquest.com/license.txt'
)
sha256sums=('0c6982f6e9a4270968dfdec2874dc642957bddbdd55f4517fa013692ffe8e67e'
            'cf01e19a835f40f72bc413eb0c668ff84e4d80c27eb65b6df8e28c30717b4f37')

package() {
  install -Dm755 pq.exe "${pkgdir}/usr/share/progress-quest/pq.exe"
  cat > progress-quest << EOF
#!/bin/sh
CONFIG_DIR="${XDG_CONFIG_HOME:-${HOME}/.config}/progress-quest"
mkdir -p "${CONFIG_DIR}"
cd "${CONFIG_DIR}"
wine /usr/share/progress-quest/pq.exe "$@"
EOF
  install -Dm755 progress-quest "${pkgdir}/usr/bin/progress-quest"
  install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
}