-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpython-sphinx
More file actions
41 lines (26 loc) · 1.09 KB
/
python-sphinx
File metadata and controls
41 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=9.1.0
URL=https://files.pythonhosted.org/packages/source/s/sphinx/sphinx-$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=python-$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
python3 -m build --wheel --skip-dependency-check
# Install
sudo python3 -m installer --destdir=/pkgs/$PACKAGE dist/*.whl
cd /pkgs
sudo cp -rpv /pkgs/$PACKAGE/* /
sudo echo "python-roman-numerals-py python-alabaster python-babel python-docutils python-imagesize python-packaging pygments python-requests python-snowballstemmer python-sphinxcontrib-applehelp python-sphinxcontrib-devhelp python-sphinxcontrib-htmlhelp python-sphinxcontrib-jsmath python-sphinxcontrib-qthelp python-sphinxcontrib-serializinghtml" > /pkgs/$PACKAGE/depends
sudo echo "python-build python-installer" > /pkgs/$PACKAGE/make-depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR