summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapache-websocket/build/apache-websocket.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/apache-websocket/build/apache-websocket.SlackBuild b/apache-websocket/build/apache-websocket.SlackBuild
index 0b5d2001..917d7942 100755
--- a/apache-websocket/build/apache-websocket.SlackBuild
+++ b/apache-websocket/build/apache-websocket.SlackBuild
@@ -40,7 +40,7 @@
# -----------------------------------------------------------------------------
PRGNAM=apache-websocket
-VERSION=${VERSION:-20130723}
+VERSION=${VERSION:-$(date +%Y%m%d)}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -55,8 +55,9 @@ TMP=${TMP:-/tmp/build}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# We always just checkout master and stamp it with the current date:
SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.xz"
-#SRCURL=""
+SRCURL="http://github.com/abligh/apache-websocket/tarball/master"
##
## --- with a little luck, you won't have to edit below this point --- ##
@@ -148,7 +149,7 @@ echo "++"
cd $TMP/tmp-$PRGNAM
echo "Extracting the source archive(s) for $PRGNAM..."
tar -xvf ${SOURCE}
-cd ${PRGNAM}-${VERSION}
+cd *${PRGNAM}-*
chown -R root:root .
chmod -R u+w,go+r-w,a+X-s .