Browse Source

l/python-decorator: Upgraded to python-decorator-4.4.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
b0ab6fa7f0
  1. 1
      l/python-decorator/decorator-4.2.1.tar.gz.sha256
  2. 1
      l/python-decorator/decorator-4.4.1.tar.gz.sha256
  3. 16
      l/python-decorator/python-decorator.SlackBuild

1
l/python-decorator/decorator-4.2.1.tar.gz.sha256

@ -1 +0,0 @@
7d46dd9f3ea1cf5f06ee0e4e1277ae618cf48dfb10ada7c8427cd46c42702a0e decorator-4.2.1.tar.gz

1
l/python-decorator/decorator-4.4.1.tar.gz.sha256

@ -0,0 +1 @@
54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce decorator-4.4.1.tar.gz

16
l/python-decorator/python-decorator.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018 Damien Goutte-Gattat
# Copyright (C) 2018,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-decorator}
VERSION=${VERSION:-4.2.1}
VERSION=${VERSION:-4.4.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/70/f1/cb9373195639db13063f55eb06116310ad691e1fd125e6af057734dc44ea/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-decorator}
@ -58,8 +57,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -69,12 +67,14 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.md LICENSE.txt PKG-INFO $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.md LICENSE.txt README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save