diff options
Diffstat (limited to 'libraries/cssutils/cssutils.SlackBuild')
-rw-r--r-- | libraries/cssutils/cssutils.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/cssutils/cssutils.SlackBuild b/libraries/cssutils/cssutils.SlackBuild index 473d73d4e7cfa..a884be86d6471 100644 --- a/libraries/cssutils/cssutils.SlackBuild +++ b/libraries/cssutils/cssutils.SlackBuild @@ -3,7 +3,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=cssutils -VERSION=${VERSION:-0.9.6a4} +VERSION=${VERSION:-0.9.6} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,6 +35,8 @@ for FILE in $(find . -type f -exec grep -Pl '\r\n' {} \;); do rm -f ${FILE}.tmp done +sed -i '/use_setuptools/d' setup.py + python setup.py install --root=$PKG ( cd $PKG @@ -49,9 +51,11 @@ cp -a \ *.txt COPYING* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# Remove unneeded tests directory. +rm -rf $PKG/usr/lib*/python*/site-packages/tests mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |