blob: 5f842f198007a79c6941d5c7709679d487b2554b (
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
42
43
44
45
46
|
# 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.14.0
_gitcommit=4b847808eb8befaf67a5191f0d4a60de5fda888b
pkgrel=2
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=('3303308010e1a9dc6205ce3e2db077af36c365fcc93ea68a07bd3a7085c6dde0b79642adc085f9a03d6e3a2080ef1117b971195ba4381b74a8166943b08bd660')
prepare() {
cd "${_pkgname}-$_gitcommit"
sed -i -e 's/python2/python/' overviewer_core/progressbar.py
}
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" -- *
}
|