summaryrefslogtreecommitdiff
path: root/libraries/cssutils/cssutils.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/cssutils/cssutils.SlackBuild')
-rw-r--r--libraries/cssutils/cssutils.SlackBuild24
1 files changed, 8 insertions, 16 deletions
diff --git a/libraries/cssutils/cssutils.SlackBuild b/libraries/cssutils/cssutils.SlackBuild
index 99c07970a2..6d9a28cf2a 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