# Contributor: Danilo Falcão # Maintainer: Danilo Falcão pkgname=py3-pelican _pkgname=pelican pkgver=4.1.0 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-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="8bd3d465cd6ead33233dc5dcd8e6076ec2d3e77ad7e2c4cd8c7f412a8fabd37eb469f91319ea3dd2836cad37cafe939e0cbbb951134eccce7b81084caa1411b0 pelican-4.1.0.tar.gz"