Browse Source

l/python-configargparse: Upgraded to python-configargparse-1.2.3.

slackware-15.0
parent
commit
41d784c172
  1. 1
      l/python-configargparse/ConfigArgParse-0.15.1.tar.gz.sha256
  2. 1
      l/python-configargparse/ConfigArgParse-1.2.3.tar.gz.sha256
  3. 12
      l/python-configargparse/python-configargparse.SlackBuild

1
l/python-configargparse/ConfigArgParse-0.15.1.tar.gz.sha256

@ -1 +0,0 @@
baaf0fd2c1c108d007f402dab5481ac5f12d77d034825bf5a27f8224757bd0ac ConfigArgParse-0.15.1.tar.gz

1
l/python-configargparse/ConfigArgParse-1.2.3.tar.gz.sha256

@ -0,0 +1 @@
edd17be986d5c1ba2e307150b8e5f5107aba125f3574dddd02c85d5cdcfd37dc ConfigArgParse-1.2.3.tar.gz

12
l/python-configargparse/python-configargparse.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018,2019 Damien Goutte-Gattat
# Copyright (C) 2018,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,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-ConfigArgParse}
VERSION=${VERSION:-0.15.1}
VERSION=${VERSION:-1.2.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/24/f2/91071498c99fdff7bf8bddb4b981e68bb095b6204233b5d9ce6747f97836/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-configargparse}
@ -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,14 +67,12 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
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 LICENSE PKG-INFO README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 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