Browse Source

l/python-send2trash: Upgraded to python-send2trash-1.5.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
168f8d1660
  1. 1
      l/python-send2trash/Send2Trash-1.4.2.tar.gz.sha256
  2. 1
      l/python-send2trash/Send2Trash-1.5.0.tar.gz.sha256
  3. 16
      l/python-send2trash/python-send2trash.SlackBuild

1
l/python-send2trash/Send2Trash-1.4.2.tar.gz.sha256

@ -1 +0,0 @@
725fbce571dffe0b640e2f1788d52c3c544b510f9d8f69b2597c8c2555bc8441 Send2Trash-1.4.2.tar.gz

1
l/python-send2trash/Send2Trash-1.5.0.tar.gz.sha256

@ -0,0 +1 @@
60001cc07d707fe247c94f74ca6ac0d3255aabcb930529690897ca2a39db28b2 Send2Trash-1.5.0.tar.gz

16
l/python-send2trash/python-send2trash.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:-Send2Trash}
VERSION=${VERSION:-1.4.2}
VERSION=${VERSION:-1.5.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/6a/32/7e7f66ed420fabefd7b2f30dd21f4b58689eb080704fc93cfb5319cbc054/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-send2trash}
@ -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.rst README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.rst LICENSE 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