blob: 7320ea88bcf003a8d6bb077f9a7fb280167b428d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
# Contributor: Buce <dmbuce@gmail.com>
# Contributor: Duncan Bain <duncanjbain@gmail.com>
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
_pkgname=Minecraft-Overviewer
pkgname=(${_pkgname,,} ${_pkgname,,}-docs)
pkgver=0.19.10
_gitcommit=13c1bddaf65dfaaf6c4c7a396c94db75bed4c089
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=('a6cb7cbede8cbc9885c8ac0eb345d314bc772c5e50562b9bc4d9f12689c6ac62907cc23ed1472f79f12b91ef71f9eff560391e5318c7d97299ee2518e691694e')
build() {
cd "${_pkgname}-$_gitcommit"
sed -i "s/ return \"unknown\"/ return \"${pkgver}\"/g" overviewer_core/util.py
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" -- *
}
|