blob: 1cb8276ef6ffff0fa4b91a3e54fcfe72633453c7 (
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
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Danilo Falcão <danilo@falcao.org>
# Maintainer: Danilo Falcão <danilo@falcao.org>
pkgname=py3-pelican
_pkgname=pelican
pkgver=4.2.0
pkgrel=1
pkgdesc="Static site generator written in Python"
options="!check" # Tests require locale support
url="https://getpelican.com"
arch="noarch"
license="AGPL-3.0-only"
depends="
python3
py3-feedgenerator
py3-jinja2
py3-pygments
py3-docutils
py3-tz
py3-blinker
py3-unidecode
py3-six
py3-dateutil
py3-markdown
"
checkdepends="py3-django"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
default_prepare
# remove shebang from python files
sed -i '1d' \
pelican/tools/*.py \
pelican/tools/templates/*.py.jinja2
# substitute feedgenerator with django feedgenerator
sed -i 's|feedgenerator|django.utils.feedgenerator|' pelican/writers.py
}
replaces="pelican" # Backwards compatibility
provides="pelican=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="094197407bb5e17cbf4a3c0f6df078a321de4b2373da2bd608baf6f82fd634986da0dae10547bcd9644f6b83e9cb4aa204a1a36e347a8a6248a3f6a197ebcff4 pelican-4.2.0.tar.gz"
|