# Contributor: Danilo Falcão # Maintainer: Danilo Falcão pkgname=py3-pelican _pkgname=pelican pkgver=4.1.1 pkgrel=0 pkgdesc="Static site generator written in Python" url="https://getpelican.com" arch="noarch" license="AGPL-3.0-only" depends="py3-blinker py3-dateutil py3-django py3-docutils py3-feedgenerator py3-jinja2 py3-markdown py3-pygments py3-setuptools py3-six py3-tz py3-unidecode" 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 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="fff240ca4ea22bf61dad449cce128cd78aebec6778d0d6ccd43354b5deaca5165048bcb27e4959746536f666dc3e5a9bea2546abc21649745ffd2ee240d723e9 pelican-4.1.1.tar.gz"