From 841b7460f3ebb59bf604f609c5f08c5005c45f7a Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 27 Jul 2012 08:32:01 +0000 Subject: Update to 0.9.9 --- python-cssutils/build/python-cssutils.SlackBuild | 25 ++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'python-cssutils') 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 # * Update. +# 0.9.9-1: 27/jul/2012 by Eric Hameleers +# * 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 -- cgit v1.2.3