contrib/python3-sphinx/Pkgfile
2021-02-02 22:49:46 +11:00

22 lines
936 B
Plaintext

# Description: The Sphinx documentaion generator
# URL: https://www.sphinx-doc.org/en/master/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: docutils python3-alabaster python3-imagesize python3-jinja python3-packaging python3-pygments python3-requests python3-snowballstemmer python3-sphinxcontrib-applehelp python3-sphinxcontrib-devhelp python3-sphinxcontrib-htmlhelp python3-sphinxcontrib-jsmath python3-sphinxcontrib-qthelp python3-sphinxcontrib-serializinghtml python3-sphinxcontrib-websupport
name=python3-sphinx
version=3.4.3
release=1
source=(https://github.com/sphinx-doc/${name#*-}/archive/v$version/${name#*-}-$version.tar.gz)
build() {
cd ${name#*-}-$version
sed -i -e '/^tag_build = .*/d' -e 's,^\(tag_date =\).*$,\1 false,' setup.cfg
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
# fix permissions
chmod -R go-w $PKG/*
}