blob: 7dc54af91719939ec0755c90d7dbc11425130479 (
plain) (
tree)
|
|
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-docutils
_pkgname=docutils
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=0.17.1
pkgrel=0
pkgdesc="Documentation utilities for Python"
url="https://pypi.python.org/pypi/docutils"
arch="noarch"
# Certified net clean
license="Custom"
depends="python3 py3-pillow"
makedepends="python3-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
cd "$builddir/test"
python3 alltests.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
# Remove .py extension from executable files.
local path; for path in "$pkgdir"/usr/bin/*.py; do
mv "$path" "${path%.py}"
done
}
doc() {
default_doc
docdir="$subpkgdir/usr/share/doc/$pkgname"
mkdir -p "$docdir"
cp -R "$builddir"/docs/* "$docdir"
cp "$builddir"/*.txt "$docdir"
licdir="$subpkgdir/usr/share/licenses/$pkgname"
mkdir -p "$licdir"
rm -f "$builddir"/licenses/docutils.conf
cp "$builddir"/licenses/* "$licdir"
}
sha512sums="5ec2087116bd5356fdffc54f07f6b0355aac5fa9d6caeefa77e8d201fd4706c0d419193c4d9a3964ae493da3091fe2c7dc36b74f81a1e1b9282173658b06e71b py3-docutils-0.17.1.tar.gz"
|