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