Browse Source

l/python-imagesize: Upgraded to python-imagesize-1.1.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
ce791be585
  1. 1
      l/python-imagesize/imagesize-0.7.1.tar.gz.sha1
  2. 1
      l/python-imagesize/imagesize-1.1.0.tar.gz.sha256
  3. 19
      l/python-imagesize/python-imagesize.SlackBuild

1
l/python-imagesize/imagesize-0.7.1.tar.gz.sha1

@ -1 +0,0 @@
cfef5d52e8822cca4adecf6a894ca41ddf162de4 imagesize-0.7.1.tar.gz

1
l/python-imagesize/imagesize-1.1.0.tar.gz.sha256

@ -0,0 +1 @@
f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5 imagesize-1.1.0.tar.gz

19
l/python-imagesize/python-imagesize.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016 Damien Goutte-Gattat
# Copyright (C) 2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,13 +23,13 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest imagesize sourcecode is available at:
# <https://pypi.python.org/pypi/imagesize>.
# <https://github.com/shibukawa/imagesize_py>.
# Source package infos
NAMESRC=${NAMESRC:-imagesize}
VERSION=${VERSION:-0.7.1}
VERSION=${VERSION:-1.1.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/53/72/6c6f1e787d9cab2cc733cf042f125abec07209a58308831c9f292504e826/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/41/f5/3cf63735d54aa9974e544aa25858d8f9670ac5b4da51020bbfc6aaade741/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-imagesize}
@ -61,7 +61,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)
# Compile
@ -69,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 README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE.rst README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save