2020-04-27 21:14:19 -04:00
|
|
|
# Description: Python API to easily integrate Sphinx documentation into web applications.
|
|
|
|
# URL: https://github.com/sphinx-doc/sphinxcontrib-websupport/
|
2021-02-02 22:49:46 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-04-27 21:14:19 -04:00
|
|
|
# Depends on: python3-setuptools
|
|
|
|
|
|
|
|
name=python3-sphinxcontrib-websupport
|
2020-08-16 20:23:05 +10:00
|
|
|
version=1.2.4
|
2020-04-27 21:14:19 -04:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/sphinx-doc/${name#*-}/archive/$version/${name#*-}-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#python3-}-$version
|
|
|
|
|
|
|
|
sed -i setup.cfg \
|
|
|
|
-e '/tag_build =.*/d' \
|
|
|
|
-e 's,tag_date = true,tag_date = false,'
|
|
|
|
|
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
|
|
|
|
|
|
|
find $PKG -name '*.txt' -exec chmod -x {} \;
|
|
|
|
find $PKG ! -type l -a \( -perm /go+w -o ! -perm /u+rw \) -exec chmod go-w,u+rw {} \;
|
|
|
|
}
|