diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-06-12 06:53:31 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 07:47:28 -0500 |
commit | 8164b9763fcfd5b4c7244ea1051928a03a1b2c5b (patch) | |
tree | 4d90be9ae458fa505aedf229ac5e27a46b9698f4 /libraries/cssutils/cssutils.SlackBuild | |
parent | 8920c3cbc3c85125309a617a08703efb1df47748 (diff) |
libraries/cssutils: Updated for version 0.9.7b2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/cssutils/cssutils.SlackBuild')
-rw-r--r-- | libraries/cssutils/cssutils.SlackBuild | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/libraries/cssutils/cssutils.SlackBuild b/libraries/cssutils/cssutils.SlackBuild index 99c07970a2bc..6d9a28cf2a98 100644 --- a/libraries/cssutils/cssutils.SlackBuild +++ b/libraries/cssutils/cssutils.SlackBuild @@ -3,10 +3,15 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=cssutils -VERSION=${VERSION:-0.9.6} +VERSION=0.9.7b2 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,11 +22,6 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - set -e rm -rf $PKG @@ -39,25 +39,17 @@ find . \ # Change files from DOS to unix. for FILE in $(find . -type f -exec grep -Pl '\r\n' {} \;); do - tr -d '\r' < $FILE > ${FILE}.tmp - cat ${FILE}.tmp > $FILE - rm -f ${FILE}.tmp + sed -i 's/\r//g' $FILE done -sed -i '/use_setuptools/d' setup.py - 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 \ - *.txt COPYING* \ - $PKG/usr/doc/$PRGNAM-$VERSION +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 |