summaryrefslogtreecommitdiffstats
path: root/wicd
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-09-29 09:15:25 +0000
committer Eric Hameleers <alien@slackware.com>2008-09-29 09:15:25 +0000
commitc468235a7403fdd7696ffaf3e7ce11866a94cfd7 (patch)
tree4bdbc7b64b8c0bc4acbf72657569f3e20e8c61c1 /wicd
parentd67bb1081c3ca50607598fd8b1bd6a992ec74ea9 (diff)
downloadasb-c468235a7403fdd7696ffaf3e7ce11866a94cfd7.tar.gz
asb-c468235a7403fdd7696ffaf3e7ce11866a94cfd7.tar.xz
Fix SVN checkouts
Diffstat (limited to 'wicd')
-rwxr-xr-xwicd/build/wicd.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/wicd/build/wicd.SlackBuild b/wicd/build/wicd.SlackBuild
index 39962593..342667b0 100755
--- a/wicd/build/wicd.SlackBuild
+++ b/wicd/build/wicd.SlackBuild
@@ -50,8 +50,10 @@
# Set initial variables:
PRGNAM=wicd
-VERSION=${VERSION:-"1.5.3"} # SVN snapshot or official release
-BRANCH=${BRANCH:-"testing-1.5.0"} # SVN 'testing' branch is where it happens
+VERSION=${VERSION:-"1.5.3"} # SVN snapshot or official release.
+ # If you want a snapshot, enter "HEAD" as the
+ # value for VERSION and leave the SRCURL variable
+ # (further down the script) empty, "".
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
@@ -76,10 +78,10 @@ SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"
# This function checks out sources from SVN/CVS and creates a tarball of them.
src_checkout() {
# Param #1 : full path to where SOURCE tarball should be created.
- local SVNURL=http://wicd.svn.sourceforge.net/svnroot/wicd/${BRANCH}
+ local SVNURL=http://wicd.svn.sourceforge.net/svnroot/wicd/trunk
if [ "$(echo ${VERSION}|cut -c1)" == 'r' ]; then # revision instead of date
REV=$(echo ${VERSION} | cut -c2-)
- elif [ "$VERSION" == "latest" -o "$VERSION" == "head" ]; then
+ elif [ "$VERSION" == "LATEST" -o "$VERSION" == "latest" -o "$VERSION" == "HEAD" -o "$VERSION" == "head" ]; then
REV=$(svn info -r HEAD ${SVNURL} | grep "^Revision: " | cut -f2 -d' ')
echo "##"
echo "## Changing VERSION from '$VERSION'..."
@@ -103,8 +105,8 @@ src_checkout() {
&& find . -type d -name '.svn' -depth | xargs rm -rf \
&& chown -R root:root . \
&& cd .. \
- && tar -${TARCOMP}cf ${1} $PRGNAM-${VERSION} \
- && rm -rf $PRGNAM-${VERSION}
+ && tar -${TARCOMP}cf ${1} $PRGNAM-${VERSION}
+ rm -rf $PRGNAM-${VERSION}
}
##