|
|
|
@ -30,9 +30,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-acme} |
|
|
|
|
VERSION=${VERSION:-0.34.2} |
|
|
|
|
VERSION=${VERSION:-0.40.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://files.pythonhosted.org/packages/02/fc/e0f7fb55d710eaa26e1b1260b2e8c77f571c7e7fcc4626a7dda8a0d7c0f8/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://files.pythonhosted.org/packages/ec/64/e1e609c6041a3d934a8878f3061b2c97cb9dbab681c043e6e7d90410928a/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-python-acme} |
|
|
|
@ -72,13 +72,21 @@ 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 LICENSE.txt PKG-INFO $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Build API docs if Sphinx and the readthedocs.org theme are available |
|
|
|
|
if type -p sphinx-build && python -c "import sphinx_rtd_theme" 2>/dev/null ; then |
|
|
|
|
make -C docs html |
|
|
|
|
cp -r docs/_build/html $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|