aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-nikola/APKBUILD
blob: f8ad5532d91a78700a75bce9753811f5e51a6823 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-nikola
_pkgname=Nikola
pkgver=7.7.4
pkgrel=0
pkgdesc="A modular, fast, simple, static python website generator"
url="http://getnikola.com/"
arch="noarch"
license="MIT"
depends="python py-doit py-pygments py-pillow py-docutils py-mako py-unidecode
	py-lxml py-yapsy py-pyrss2gen py-tz py-blinker py-logbook py-natsort
	py-markdown"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/nikola-$pkgver.tar.gz"

_builddir="$srcdir"/nikola-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
#	python setup.py test || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="a7285f0d78b9e727a405fba379fde206  nikola-7.7.4.tar.gz"
sha256sums="9d1910d20cfbd4e2cb8005f9552f60cf5067f0b68b0536e9146f0b0888758655  nikola-7.7.4.tar.gz"
sha512sums="9d2bb6dd342ed13ca71f21ecbb9de94db674f293133c61454c0bedf01c32c4e6f27e5340c0a4fda02707feabafe15dbea745074d203ebe275f36e89c57f40df7  nikola-7.7.4.tar.gz"