ability to package stable version

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2015-01-08 09:43:10 +01:00
parent 2d1926ea3b
commit 0c1cf1789c

View file

@ -5,6 +5,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
STABLE=${STABLE:-"NO"}
ARCH=${ARCH:-$(uname -m)} ARCH=${ARCH:-$(uname -m)}
BUILD=1 BUILD=1
@ -26,8 +27,8 @@ mkdir -p $PKG
# mise en place # mise en place
cd $TMP cd $TMP
if [ -e $CWD/$PRGNAM-$VERSION.tar.bz2 ]; then if [ "x$STABLE" == "xYES" ]; then
# wget -c https://download.owncloud.com/desktop/stable/$PRGNAM-$VERSION.tar.bz2 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 tar xf $CWD/$PRGNAM-$VERSION.tar.bz2
else else
if [ ! -e $REPOSITORY ]; then if [ ! -e $REPOSITORY ]; then