Browse Source

l/python-markdown: Upgraded to python-markdown-3.1.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
d93983ea5d
  1. 1
      l/python-markdown/Markdown-2.6.10.zip.sha256
  2. 1
      l/python-markdown/Markdown-3.1.1.tar.gz.sha256
  3. 23
      l/python-markdown/python-markdown.SlackBuild

1
l/python-markdown/Markdown-2.6.10.zip.sha256

@ -1 +0,0 @@
cfa536d1ee8984007fcecc5a38a493ff05c174cb74cb2341dafd175e6bc30851 Markdown-2.6.10.zip

1
l/python-markdown/Markdown-3.1.1.tar.gz.sha256

@ -0,0 +1 @@
2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a Markdown-3.1.1.tar.gz

23
l/python-markdown/python-markdown.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:
@ -22,13 +22,13 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest Markdown sourcecode is available at: <PROJECT_URL>.
# Latest Markdown sourcecode is available at:
# <https://python-markdown.github.io/>.
# Source package infos
NAMESRC=${NAMESRC:-Markdown}
VERSION=${VERSION:-2.6.10}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.zip}
WGET=${WGET:-https://pypi.python.org/packages/f0/68/d7d5503adbd302fb8e44c8ece2b8afff467a888efb8a0a116c432cc4f4fe/$ARCHIVE}
VERSION=${VERSION:-3.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-python-markdown}
@ -57,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=$NAMESRC-$VERSION
@ -66,14 +65,16 @@ NAME=$NAMESRC-$VERSION
# Compile
cd $TMP
echo "Building $ARCHIVE..."
unzip $CWD/$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 LICENSE.md PKG-INFO README.md $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE.md README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save