From 0c1cf1789cdf59bee5eff8281fab3d83e9c5201b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 8 Jan 2015 09:43:10 +0100 Subject: [PATCH] ability to package stable version Signed-off-by: Gwenhael Le Moine --- xap/mirall/mirall.SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xap/mirall/mirall.SlackBuild b/xap/mirall/mirall.SlackBuild index cba8f8db..415af5f7 100755 --- a/xap/mirall/mirall.SlackBuild +++ b/xap/mirall/mirall.SlackBuild @@ -5,6 +5,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} +STABLE=${STABLE:-"NO"} ARCH=${ARCH:-$(uname -m)} BUILD=1 @@ -26,8 +27,8 @@ mkdir -p $PKG # mise en place cd $TMP -if [ -e $CWD/$PRGNAM-$VERSION.tar.bz2 ]; then - # wget -c https://download.owncloud.com/desktop/stable/$PRGNAM-$VERSION.tar.bz2 +if [ "x$STABLE" == "xYES" ]; then + wget -c https://download.owncloud.com/desktop/stable/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2 tar xf $CWD/$PRGNAM-$VERSION.tar.bz2 else if [ ! -e $REPOSITORY ]; then