Browse Source

l/josepy: Upgraded to josepy-1.3.0.

current-20200608
Damien Goutte-Gattat 7 months ago
parent
commit
10d6d2156e
3 changed files with 12 additions and 12 deletions
  1. +0
    -1
      l/josepy/josepy-1.2.0.tar.gz.sha256
  2. +1
    -0
      l/josepy/josepy-1.3.0.tar.gz.sha256
  3. +11
    -11
      l/josepy/josepy.SlackBuild

+ 0
- 1
l/josepy/josepy-1.2.0.tar.gz.sha256 View File

@ -1 +0,0 @@
9cec9a839fe9520f0420e4f38e7219525daccce4813296627436fe444cd002d3 josepy-1.2.0.tar.gz

+ 1
- 0
l/josepy/josepy-1.3.0.tar.gz.sha256 View File

@ -0,0 +1 @@
c341ffa403399b18e9eae9012f804843045764d1390f9cb4648980a7569b1619 josepy-1.3.0.tar.gz

+ 11
- 11
l/josepy/josepy.SlackBuild View File

@ -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:
@ -29,9 +29,8 @@
# Source package infos
NAMESRC=${NAMESRC:-josepy}
VERSION=${VERSION:-1.2.0}
VERSION=${VERSION:-1.3.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/a4/78/297f71aafb7d4d825af43087ccf7b4a790283329b246e66d8a31b0cac093/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-josepy}
@ -45,6 +44,7 @@ TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
set -e # Quit if a command returns non-zero
@ -60,8 +60,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,19 +70,20 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
mv $PKG/usr/bin/jws $PKG/usr/bin/jws-2.7
python3 setup.py build
python3 setup.py install --root=$PKG
mv $PKG/usr/bin/jws $PKG/usr/bin/jws-3.7
ln -s jws-2.7 $PKG/usr/bin/jws
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGELOG.rst CONTRIBUTING.md LICENSE.txt PKG-INFO README.rst \
install -m 644 CHANGELOG.rst CONTRIBUTING.md LICENSE.txt README.rst \
$PKG/usr/doc/$NAME
# Build HTML docs if possible
export PYTHONPATH=$PKG$PYTHONDIR
if sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc


Loading…
Cancel
Save