From dce568344c288cf3b9c1babdf9718eea5782a694 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 17 Jun 2012 10:12:21 +0000 Subject: Update to 1.3.1 --- pastebinit/build/pastebinit.SlackBuild | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'pastebinit/build') diff --git a/pastebinit/build/pastebinit.SlackBuild b/pastebinit/build/pastebinit.SlackBuild index 0d024098..41a12616 100755 --- a/pastebinit/build/pastebinit.SlackBuild +++ b/pastebinit/build/pastebinit.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 @@ -36,6 +36,8 @@ # * Updated for Slackware 13.1 # 1.2-1: 07/aug/2011 by Eric Hameleers # * Update for Slackware 13.37. +# 1.3.1-1: 17/jun/2012 by Eric Hameleers +# * Update. # # Run 'sh pastebinit.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -43,10 +45,8 @@ # # ----------------------------------------------------------------------------- -# Set initial variables: - PRGNAM=pastebinit -VERSION=${VERSION:-1.2} +VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} ARCH="noarch" NUMJOBS=${NUMJOBS:" -j4 "} @@ -91,10 +91,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 @@ -124,10 +125,6 @@ echo "Extracting the source archive(s) for $PRGNAM..." tar -zxvf ${SOURCE} cd ${PRGNAM}-${VERSION} -## Fix for the new pastebin.com API. -#cat $SRCDIR/pastebinit_pbc.diff | patch -p0 --verbose \ -# 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log - chown -R root:root . chmod -R u+w,go+r-w,a+X-s . -- cgit v1.2.3-65-gdbad