blob: 37c4e4efcf2c5a3db87c361d28660006d2a3c59f (
plain)
1 # Description: Python API to easily integrate Sphinx documentation into web applications.
2 # URL: https://github.com/sphinx-doc/sphinxcontrib-websupport/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-setuptools
5
6 name=python3-sphinxcontrib-websupport
7 version=1.2.4
8 release=1
9 source=(https://github.com/sphinx-doc/${name#*-}/archive/$version/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#python3-}-$version
13
14 sed -i setup.cfg \
15 -e '/tag_build =.*/d' \
16 -e 's,tag_date = true,tag_date = false,'
17
18 /usr/bin/python3 setup.py build
19 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
20
21 find $PKG -name '*.txt' -exec chmod -x {} \;
22 find $PKG ! -type l -a \( -perm /go+w -o ! -perm /u+rw \) -exec chmod go-w,u+rw {} \;
23 }
|