# Maintainer: Mike Swanson # Contributor: Buce # Contributor: Duncan Bain # Contributor: Maxwell Pray a.k.a. Synthead _pkgname=Minecraft-Overviewer pkgname=(${_pkgname,,} ${_pkgname,,}-docs) pkgver=0.16.4 _gitcommit=91ea87447a1b73aa596a0a7919910b8556f24283 pkgrel=1 pkgdesc="Render large resolution images of a Minecraft map with a web UI" arch=('x86_64') url="https://github.com/overviewer/${_pkgname}" license=('GPL3') depends=('python' 'python-pillow' 'python-numpy') makedepends=('python-sphinx') source=("$url/archive/$_gitcommit.tar.gz") b2sums=('893fcea6e465a525951169a7c23e9094672003d06a7becc06cd08fce19cd41040349187f33508ae7b21863cbf32995a07737bff84bdccee422c01d714417af06') build() { cd "${_pkgname}-$_gitcommit" python setup.py build cd ./docs make html } package_minecraft-overviewer() { cd "${_pkgname}-$_gitcommit" python setup.py install --prefix=/usr --root="$pkgdir" } package_minecraft-overviewer-docs() { arch=('any') depends=() cd "${_pkgname}-$_gitcommit/docs/_build/html" install -d "$pkgdir/usr/share/doc/${pkgbase}/html" cp -r -t "$pkgdir/usr/share/doc/${pkgbase}/html" -- * }