|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2016,2017 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2016,2017,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -25,14 +25,13 @@
|
|
|
|
|
# Latest cryptography sourcecode is available at: |
|
|
|
|
# <https://github.com/pyca/cryptography>. |
|
|
|
|
# |
|
|
|
|
# Depends: l/python-idna, l/python-asn1crypto, l/python-six |
|
|
|
|
# Depends: l/python-cffi, l/python-enum34, l/python-ipaddress |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-cryptography} |
|
|
|
|
VERSION=${VERSION:-2.1.4} |
|
|
|
|
VERSION=${VERSION:-2.8} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/78/c5/7188f15a92413096c93053d5304718e1f6ba88b818357d05d19250ebff85/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-python-cryptography} |
|
|
|
@ -87,8 +86,12 @@ tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
python setup.py build |
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
python2 setup.py build |
|
|
|
|
python2 setup.py install --root=$PKG |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
python3 setup.py build |
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
@ -104,9 +107,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF >$PKG/install/slack-required |
|
|
|
|
python-idna |
|
|
|
|
python-asn1crypto |
|
|
|
|
python-six |
|
|
|
|
python-cffi |
|
|
|
|
python-enum34 |
|
|
|
|
python-ipaddress |
|
|
|
|