# Maintainer: Mike Swanson # Contributor: Buce # Contributor: Duncan Bain # Contributor: Maxwell Pray a.k.a. Synthead _pkgname=Minecraft-Overviewer pkgname=(${_pkgname,,} ${_pkgname,,}-docs) pkgver=0.12.254 _gitcommit=b9be8f8ffdc5f5d86b39a689c52518338d18b8ab pkgrel=1 pkgdec="Render a Minecraft map with a Google Maps interface" arch=('x86_64') url="https://github.com/overviewer/${_pkgname}" license=('GPL') depends=('python2' 'python2-pillow' 'python2-numpy') makedepends=('python2-sphinx') source=("$url/archive/$_gitcommit.tar.gz") sha512sums=('7f4c281f495b2f9d149c1b472b9755bbc3a9b2d7208b6dded1c1713eaba2f1cd82a95dc5ff1b1be7767143092350edc192baab733b007590dbbd682222688036') build() { cd "${_pkgname}-$_gitcommit" python2 setup.py build cd ./docs make SPHINXBUILD=sphinx-build2 html } package_minecraft-overviewer() { cd "${_pkgname}-$_gitcommit" python2 setup.py install --prefix=/usr --root="$pkgdir" } package_minecraft-overviewer-docs() { arch=('any') cd "${_pkgname}-$_gitcommit/docs/_build/html" install -d "$pkgdir/usr/share/doc/${pkgbase}/html" cp -r -t "$pkgdir/usr/share/doc/${pkgbase}/html" -- * }