blob: 08a111abd232d52245562e48d475264359f70f81 (
plain)
1 # Description: sphinx extension which renders display math in HTML via JavaScript
2 # URL: https://github.com/sphinx-doc/sphinxcontrib-jsmath/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-setuptools
5
6 name=python3-sphinxcontrib-jsmath
7 version=1.0.1
8 release=1
9 source=(https://github.com/sphinx-doc/${name#*-}/archive/$version/${name#*-}-$version.tar.gz)
10
11 build() {
12 cd ${name#*-}-$version
13
14 sed -i '/^tag_build =/s/= .*$/=/' setup.cfg
15 sed -i '/^tag_date =/s/true/false/' setup.cfg
16
17 /usr/bin/python3 setup.py build
18 /usr/bin/python3 setup.py install \
19 --prefix=/usr \
20 --root=$PKG
21
22 chmod -R go-w,a+r,u+w $PKG
23 }
|