summaryrefslogtreecommitdiff
path: root/network/LimeWire/LimeWire.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/LimeWire/LimeWire.SlackBuild')
-rw-r--r--network/LimeWire/LimeWire.SlackBuild21
1 files changed, 19 insertions, 2 deletions
diff --git a/network/LimeWire/LimeWire.SlackBuild b/network/LimeWire/LimeWire.SlackBuild
index 2eb6622fa5..5bda134b0b 100644
--- a/network/LimeWire/LimeWire.SlackBuild
+++ b/network/LimeWire/LimeWire.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for limewire
-# Copyright 2006-2009 Robby Workman, Northport, AL, USA
+# Copyright 2006-2010 Robby Workman, Northport, AL, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=LimeWire
-VERSION=${VERSION:-5.3}
+VERSION=${VERSION:-5.5.8}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,6 +41,23 @@ cd $TMP
unzip $CWD/LimeWireOther.zip
mv $PRGNAM $PKG/opt
+ZIPVERSION=$(strings $PKG/opt/LimeWire/LimeWire.jar | grep "LimeWire version [0-9]")
+if [ "$ZIPVERSION" != "LimeWire version $VERSION" ]; then
+ cat << EOF
+
+This script is made for LimeWire version $VERSION, but the zip archive
+present in $CWD is $ZIPVERSION.
+
+This is probably okay - the LimeWire developers frequently release new
+versions, but the zip archive is not versioned. If you want to continue
+with the zip archive you have, simply press Enter and we'll carry on.
+Otherwise, press Ctrl-C to exit.
+
+EOF
+ read _junk
+ VERSION="$(printf "$ZIPVERSION" | cut -d ' ' -f 3)"
+fi
+
mkdir -p $PKG/usr/bin
cat << EOF > $PKG/usr/bin/$PRGNAM
#!/bin/sh