|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2019 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2019,2020 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -25,13 +25,10 @@ |
|
|
|
# Latest flake8 sourcecode is available at: <https://gitlab.com/pycqa/flake8>. |
|
|
|
# |
|
|
|
# Depends: l/python-entrypoints, l/python-mccabe, l/pycodestyle, l/pyflakes |
|
|
|
# Optional: l/python-backports, l/python-enum34, l/python-functools32 |
|
|
|
# |
|
|
|
# Note: The optional dependencies above are only needed for Python 2. |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-flake8} |
|
|
|
VERSION=${VERSION:-3.7.9} |
|
|
|
VERSION=${VERSION:-3.8.3} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
# Build infos |
|
|
@ -71,7 +68,6 @@ cd $TMP |
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
# Build for Python 3 only. |
|
|
|
python3 setup.py build |
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|