mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
ability to package stable version
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
2d1926ea3b
commit
0c1cf1789c
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue