summaryrefslogtreecommitdiffstats
path: root/pastebinit/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-06-17 10:12:21 +0000
committer Eric Hameleers <alien@slackware.com>2012-06-17 10:12:21 +0000
commitdce568344c288cf3b9c1babdf9718eea5782a694 (patch)
tree2a64ba0275b456f74c5c1ba663a262b574a617d6 /pastebinit/build
parent368233c6145b3a5fceaebae6f1b74972f43afc4d (diff)
downloadasb-dce568344c288cf3b9c1babdf9718eea5782a694.tar.gz
asb-dce568344c288cf3b9c1babdf9718eea5782a694.tar.xz
Update to 1.3.1
Diffstat (limited to 'pastebinit/build')
-rwxr-xr-xpastebinit/build/pastebinit.SlackBuild19
1 files changed, 8 insertions, 11 deletions
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 <alien@slackware.com>
# * Update for Slackware 13.37.
+# 1.3.1-1: 17/jun/2012 by Eric Hameleers <alien@slackware.com>
+# * 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 .