|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2014,2016 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2014,2016,2017 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,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-MarkupSafe}
|
|
|
|
|
VERSION=${VERSION:-0.23}
|
|
|
|
|
VERSION=${VERSION:-1.0}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
|
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/$ARCHIVE}
|
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-markupsafe}
|
|
|
|
@ -75,7 +75,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Install
|
|
|
|
@ -88,7 +88,8 @@ python setup.py install --root=$PKG
|
|
|
|
|
|
|
|
|
|
# Install the documentation
|
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
install -m 644 AUTHORS LICENSE PKG-INFO README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
install -m 644 AUTHORS CHANGES LICENSE PKG-INFO README.rst \
|
|
|
|
|
$PKG/usr/doc/$NAMEPKG-$VERSION
|
|
|
|
|
|
|
|
|
|
# Copy slack-desc doinst.sh
|
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|