blob: 9a53502a1b4b444ea56a452e8900079401c19a6b (
plain)
1 # Description: The Sphinx documentaion generator
2 # URL: https://www.sphinx-doc.org/en/master/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-alabaster python3-docutils python3-imagesize python3-jinja2 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
5
6 name=python3-sphinx
7 _name=Sphinx
8 version=4.2.0
9 release=1
10 source=(https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$version.tar.gz)
11
12 # fails for bsdtar
13 unpack_source() {
14 for file in ${source[@]}; do
15 case ${file##*/} in
16 $_name-$version.tar.gz)
17 tar xfvz $(get_filename $file) -C $SRC ;;
18 *)
19 cp $(get_filename $file) $SRC ;;
20 esac
21 done
22 }
23
24 build() {
25 cd $_name-$version
26
27 sed -i -e '/^tag_build = .*/d' -e 's,^\(tag_date =\).*$,\1 false,' setup.cfg
28
29 /usr/bin/python3 setup.py build
30 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
31
32 # fix permissions
33 chmod -R go-w $PKG/*
34 }
|