Browse Source

l/python-sjcl: Upgraded to python-sjcl-0.2.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
49fcee8649
  1. 17
      l/python-sjcl/python-sjcl.SlackBuild
  2. 1
      l/python-sjcl/sjcl-0.1.7.tar.gz.sha256
  3. 1
      l/python-sjcl/sjcl-0.2.1.tar.gz.sha256

17
l/python-sjcl/python-sjcl.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
# Copyright (C) 2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,9 +29,8 @@
# Source package infos
NAMESRC=${NAMESRC:-sjcl}
VERSION=${VERSION:-0.1.7}
VERSION=${VERSION:-0.2.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/63/e9/4ca064f8da3162947500489cac48e9ccdd4cecf839f88ddb1b1b24e32203/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-sjcl}
@ -60,8 +59,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)
@ -71,13 +69,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.txt LICENSE.txt PKG-INFO README.md \
$PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES.txt LICENSE.txt README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

1
l/python-sjcl/sjcl-0.1.7.tar.gz.sha256

@ -1 +0,0 @@
80f41ca1e98d43299f6b93e83220883bd63bd3844fb9ba302122e9d6955e047e sjcl-0.1.7.tar.gz

1
l/python-sjcl/sjcl-0.2.1.tar.gz.sha256

@ -0,0 +1 @@
3761ba01f9f049eaa2f67516054b7bfb2e27fe8bc7c9c630da7168fba58f0c57 sjcl-0.2.1.tar.gz
Loading…
Cancel
Save