diff options
Diffstat (limited to 'python/python-distutils-extra/python-distutils-extra.SlackBuild')
-rw-r--r-- | python/python-distutils-extra/python-distutils-extra.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/python/python-distutils-extra/python-distutils-extra.SlackBuild b/python/python-distutils-extra/python-distutils-extra.SlackBuild index ef45067248438..b4b59e6dec2cf 100644 --- a/python/python-distutils-extra/python-distutils-extra.SlackBuild +++ b/python/python-distutils-extra/python-distutils-extra.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=python-distutils-extra -VERSION=2.32 +VERSION=${VERSION:-2.37} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,15 +37,20 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Build extra options. +cat >> setup.cfg << EOF +[build] +i18n=True +icons=True +EOF + python setup.py install --root=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - LICENSE PKG-INFO doc/{FAQ,README} \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE PKG-INFO doc/{FAQ,README} $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |