# Maintainer: Mike Swanson # Contributor: Buce # Contributor: Duncan Bain # Contributor: Maxwell Pray a.k.a. Synthead _pkgname=Minecraft-Overviewer pkgname=(${_pkgname,,} ${_pkgname,,}-docs) pkgver=0.14.57 _gitcommit=d2bef52a76cf983d8a5f24d843b653f63c60940b 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") sha512sums=('971c5c56e80d38d0a918435e695af5dcdf5a57a8f60f15be906e51a53fff86cc31ce4b4d8f1398da7f836d617f9fca41f4df12765e5355964219219418685af0') 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" -- * }