Browse Source

l/python-mistune: Upgraded to python-mistune-0.8.4.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
0e2ec30734
  1. 1
      l/python-mistune/mistune-0.8.3.tar.gz.sha256
  2. 1
      l/python-mistune/mistune-0.8.4.tar.gz.sha256
  3. 33
      l/python-mistune/python-mistune.SlackBuild

1
l/python-mistune/mistune-0.8.3.tar.gz.sha256

@ -1 +0,0 @@
bc10c33bfdcaa4e749b779f62f60d6e12f8215c46a292d05e486b869ae306619 mistune-0.8.3.tar.gz

1
l/python-mistune/mistune-0.8.4.tar.gz.sha256

@ -0,0 +1 @@
59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e mistune-0.8.4.tar.gz

33
l/python-mistune/python-mistune.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:-mistune}
VERSION=${VERSION:-0.8.3}
VERSION=${VERSION:-0.8.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/9d/be/e06d4346cc608a01dec6bf770d7d0303a4fd6db588b318ced18f5f257145/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-mistune}
@ -56,25 +55,9 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# 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)
@ -84,12 +67,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
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

Loading…
Cancel
Save