#Packager: George Vlahavas pkgname=python-six pkgver=1.11.0 pkgrel=1gv source=("https://pypi.python.org/packages/source/s/six/six-${pkgver}.tar.gz") docs=("LICENSE" "PKG-INFO" "README") url=http://pypi.python.org/pypi/six/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "python-six (Python 2 and 3 compatibility utilities)" "Six is a Python 2 and 3 compatibility library. It provides utility" "functions for smoothing over the differences between the Python" "versions with the goal of writing Python code that is compatible on" "both Python versions. See the documentation for more information on" "what is provided." "" "Homepage: http://pypi.python.org/pypi/six/" ) build() { cd $startdir/src/six-$pkgver python setup.py install --prefix=/usr --root=$startdir/pkg if $(python3 -c 'import os' 2>/dev/null); then python3 setup.py install --root=$PKG fi # Build and install documentation if sphinx is installed. if $(python -c 'import sphinx.pygments_styles' 2>/dev/null); then make -j1 -C documentation man singlehtml install -D -m 0644 documentation/_build/man/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 gzip -9 $PKG/usr/man/man?/*.? fi }