1 # Maintainer: Zachary A. Jones <JazzplayerL9@gmail.com>
3 pkgname=zen-puzzle-garden
6 pkgdesc="Zen Puzzle Garden gently tests your ability to rake out an uninterrupted stone garden pattern. You must purchase the game."
7 url="http://www.lexaloffle.com/zen.htm"
8 license=('custom: "commercial"')
9 groups=('humblevoxatronbundle' 'humblebundles')
10 arch=('i686' 'x86_64')
11 [ "${CARCH}" = "x86_64" ] && depends=('lib32-libgl' 'lib32-sdl' 'lib32-libpulse')
12 [ "${CARCH}" = "i686" ] && depends=('libgl' 'sdl' 'libpulse')
14 source=("zpg.desktop" "zen-exec" "zpg.png")
15 md5sums=('25828d2ac675485a61b2c6e0f5da63e5'
16 '0808a805715b490f7712e1d820e39e56'
17 'ffdde200aed5f09a423a93958c800733')
19 _gamepkg="${pkgname}_${pkgver}-1_i386.tar.gz"
23 msg "You need a full copy of this game in order to install it"
24 msg "Searching for ${_gamepkg} in dir: $(readlink -f `pwd`/..)"
25 if [[ -f "../${_gamepkg}" ]]; then
26 msg "Found game package, installing..."
27 ln -fs "../${_gamepkg}" .
28 elif [ -n "${_humblevoxatronkey}" ]; then
29 msg "Game package not found, trying to download..."
30 rm -f index.html\?key\=${_humblevoxatronkey}*
31 wget http://www.humblebundle.com/?key=${_humblevoxatronkey}
32 wget $(cat index.html\?key\=${_humblevoxatronkey} | grep "${_gamepkg}" | cut -d "'" -f 10)
33 mv ${_gamepkg}* ${_gamepkg}
35 msg "Game package not found and download failed."
36 msg "You can add \'export _humblevoxatronkey\=\<Your key here\>\' to \.bashrc if you want automated download ability."
37 error "Please type absolute path to ${_gamepkg} (/home/joe):"
39 if [[ -f "${pkgpath}/${_gamepkg}" ]]; then
40 msg "Found game package, installing..."
41 ln -fs "${pkgpath}/${_gamepkg}" .
43 error "Unable to find game package."
48 install -d "${pkgdir}/opt/${pkgname}"
49 rm "${srcdir}/${_pkgname}/libSDL-1.2.so.0"
50 cp -R "${srcdir}"/${_pkgname}/* "${pkgdir}/opt/${pkgname}/"
56 install -d "${pkgdir}/usr/bin/"
57 install -D -m755 "${srcdir}/zen-exec" "${pkgdir}/usr/bin/${pkgname}"
58 # Install Desktop File and Icon
59 install -D -m644 "${srcdir}/zpg.desktop" \
60 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
61 install -D -m644 "${srcdir}/zpg.png" \
62 "${pkgdir}/usr/share/icons/${pkgname}-icon.png"
64 install -Dm 644 "${pkgdir}"/opt/${pkgname}/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/license