summaryrefslogtreecommitdiffstats
path: root/python-cssutils
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-07-27 08:32:01 +0000
committer Eric Hameleers <alien@slackware.com>2012-07-27 08:32:01 +0000
commit841b7460f3ebb59bf604f609c5f08c5005c45f7a (patch)
tree55949527560d3877dd0a8740e922f6e83a13c162 /python-cssutils
parent1cc820f826745e1a92d1c02d10d309177e5f2b99 (diff)
downloadasb-841b7460f3ebb59bf604f609c5f08c5005c45f7a.tar.gz
asb-841b7460f3ebb59bf604f609c5f08c5005c45f7a.tar.xz
Update to 0.9.9
Diffstat (limited to 'python-cssutils')
-rwxr-xr-xpython-cssutils/build/python-cssutils.SlackBuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/python-cssutils/build/python-cssutils.SlackBuild b/python-cssutils/build/python-cssutils.SlackBuild
index 1f8bd73a..61edb34d 100755
--- a/python-cssutils/build/python-cssutils.SlackBuild
+++ b/python-cssutils/build/python-cssutils.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2010, 2011 Eric Hameleers, Eindhoven, NL
+# Copyright 2010, 2011, 2012 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -34,6 +34,8 @@
# * Initial build.
# 0.9.7-1: 25/may/2011 by Eric Hameleers <alien@slackware.com>
# * Update.
+# 0.9.9-1: 27/jul/2012 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh python-cssutils.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -45,7 +47,7 @@
PRGNAM=python-cssutils
SRCNAM=cssutils
-VERSION=${VERSION:-0.9.7}
+VERSION=${VERSION:-0.9.9}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -61,19 +63,21 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
SOURCE="$SRCDIR/${SRCNAM}-${VERSION}.zip"
-SRCURL="http://cssutils.googlecode.com/files/${SRCNAM}-${VERSION}.zip"
+SRCURL="https://bitbucket.org/cthedot/cssutils/downloads/${SRCNAM}-${VERSION}.zip"
##
## --- with a little luck, you won't have to edit below this point --- ##
##
# Automatically determine the architecture we're building on:
+MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
- arm*) export ARCH=arm ;;
+ case "$MARCH" in
+ i?86) export ARCH=i486 ;;
+ armv7hl) export ARCH=$MARCH ;;
+ arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
- *) export ARCH=$( uname -m ) ;;
+ *) export ARCH=$MARCH ;;
esac
fi
@@ -99,10 +103,11 @@ rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
# Source file availability:
if ! [ -f ${SOURCE} ]; then
+ echo "Source '$(basename ${SOURCE})' not available yet..."
+ # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
+ [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)"
+ if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi
if ! [ "x${SRCURL}" == "x" ]; then
- # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
- [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)"
- echo "Source '$(basename ${SOURCE})' not available yet..."
echo "Will download file to $(dirname $SOURCE)"
wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true
if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then