contrib/python3-sphinx/Pkgfile

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-02-02 12:49:46 +01:00
# Description: The Sphinx documentaion generator
# URL: https://www.sphinx-doc.org/en/master/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-alabaster python3-docutils-compat 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
2020-04-28 03:14:20 +02:00
name=python3-sphinx
2021-03-22 09:29:19 +01:00
_name=Sphinx
2022-02-18 14:13:18 +01:00
version=4.4.0
2020-04-28 03:14:20 +02:00
release=1
2021-04-13 14:30:18 +02:00
source=(https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$version.tar.gz)
2020-04-28 03:14:20 +02:00
2021-06-27 22:06:47 +02:00
# fails for bsdtar
unpack_source() {
for file in ${source[@]}; do
case ${file##*/} in
$_name-$version.tar.gz)
2021-11-14 12:45:32 +01:00
bsdtar xfvz $(get_filename $file) -C $SRC ;;
2021-06-27 22:06:47 +02:00
*)
cp $(get_filename $file) $SRC ;;
esac
done
}
2020-04-28 03:14:20 +02:00
build() {
2021-03-22 09:29:19 +01:00
cd $_name-$version
2020-04-28 03:14:20 +02:00
sed -i -e '/^tag_build = .*/d' -e 's,^\(tag_date =\).*$,\1 false,' setup.cfg
/usr/bin/python3 setup.py build
2020-11-10 09:20:56 +01:00
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 --skip-build
2020-04-28 03:14:20 +02:00
# fix permissions
chmod -R go-w $PKG/*
}