# Maintainer: Antoine Martin _pyname='humanfriendly' pkgname="py3-$_pyname" pkgver=9.2 pkgrel=0 arch='noarch' pkgdesc='Python parser for human readable dates' url="https://pypi.python.org/project/${_pyname}" license="MIT" depends='python3' makedepends='py3-setuptools py3-sphinx' options="!check" source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-${pkgver}.tar.gz" builddir="$srcdir"/$_pyname-$pkgver subpackages="$pkgname-doc" build() { cd "$builddir" python3 setup.py build cd docs sphinx-build -nb html -d build/doctrees . build/html } package() { cd "$builddir" python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE install -Dm644 CHANGELOG.rst "${pkgdir}/usr/share/doc/python-humanfriendly/CHANGELOG.rst" cp -r docs/build/html "${pkgdir}/usr/share/doc/python-humanfriendly/html" } sha512sums=" 2abb8d7d4dfb84d625e82f3475bea5045c32f548a45999dca97d39e5bc0cd704a9ab45e0b6b87c0d419b447680a3e71e2d9c8cb14ba19117c7ac9b2f56297f00 py3-humanfriendly-9.2.tar.gz "