|
|
|
@ -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: |
|
|
|
@ -23,15 +23,15 @@
|
|
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org> |
|
|
|
|
# |
|
|
|
|
# Latest mock sourcecode is available at: |
|
|
|
|
# <https://github.com/testing-cabal/mock>. |
|
|
|
|
# <http://mock.readthedocs.org/en/latest/>. |
|
|
|
|
# |
|
|
|
|
# Depends: l/python-funcsigs, l/python-pbr |
|
|
|
|
# Depends: l/python-funcsigs |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-mock} |
|
|
|
|
VERSION=${VERSION:-2.0.0} |
|
|
|
|
VERSION=${VERSION:-3.0.5} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://files.pythonhosted.org/packages/2e/ab/4fe657d78b270aa6a32f027849513b829b41b0f28d9d8d7f8c3d29ea559a/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-python-mock} |
|
|
|
@ -76,7 +76,7 @@ python setup.py install --root=$PKG
|
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 AUTHORS ChangeLog LICENSE.txt NEWS PKG-INFO README.rst \ |
|
|
|
|
install -m 644 CHANGELOG.rst LICENSE.txt README.rst \ |
|
|
|
|
$PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
@ -85,7 +85,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
python-funcsigs |
|
|
|
|
python-pbr |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Package the tree |
|
|
|
|