summaryrefslogtreecommitdiff
path: root/python3-sphinxcontrib-websupport/Pkgfile
blob: eb30361823f41bffb75ad78d378e0a4c5f65c4d8 (plain)
    1 # Description: Python API to easily integrate Sphinx documentation into web applications.
    2 # URL:         https://github.com/sphinx-doc/sphinxcontrib-websupport/
    3 # Maintainer:  John Vogel, jvogel4 at stny dot rr dot com
    4 # Depends on:  python3-setuptools
    5 
    6 name=python3-sphinxcontrib-websupport
    7 version=1.2.2
    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 }

Generated by cgit