|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2008-2013,2016,2019 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2008-2013,2016,2019,2020 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-reportlab} |
|
|
|
|
VERSION=${VERSION:-3.5.32} |
|
|
|
|
VERSION=${VERSION:-3.5.42} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
@ -83,10 +83,6 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
python2 setup.py build |
|
|
|
|
python2 setup.py install --root=$PKG |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
python3 setup.py build |
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
@ -98,7 +94,7 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
|
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
( |
|
|
|
|
cd docs |
|
|
|
|
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.7/site-packages:$PYTHONPATH \ |
|
|
|
|
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages:$PYTHONPATH \ |
|
|
|
|
python3 genAll.py |
|
|
|
|
) |
|
|
|
|
install -m 644 CHANGES.md LICENSE.txt README.txt docs/*.pdf $PKG/usr/doc/$NAME |
|
|
|
|