diff options
author | Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> | 2018-10-08 22:29:43 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-13 08:02:56 +0700 |
commit | c5f47138c5b893639a4c1b3d068aa09a7478f039 (patch) | |
tree | e6eda8baaadb5732b5cd9977ffe89e4d6276c651 /network/davmail/davmail.SlackBuild | |
parent | 00383e05303fb259afd5449fe3861efe7727ed7c (diff) |
network/davmail: Updated for version 4.9.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/davmail/davmail.SlackBuild')
-rw-r--r-- | network/davmail/davmail.SlackBuild | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/network/davmail/davmail.SlackBuild b/network/davmail/davmail.SlackBuild index 6d9b474430041..8166e5c38da56 100644 --- a/network/davmail/davmail.SlackBuild +++ b/network/davmail/davmail.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for DavMail -# Copyright (c) 2015-2017 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> +# Copyright (c) 2015-2018 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,41 +24,27 @@ # Written by Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> # Modified by Mario Preksavec <mario@slackware.hr> +# Updated by Alfredo Tomasini <alto.tom@gmail.com> to support .zip releases PRGNAM=davmail -VERSION=${VERSION:-4.8.1.1} +VERSION=${VERSION:-4.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ "$ARCH" = "i586" ]; then - SRCARCH="x86" -elif [ "$ARCH" = "i686" ]; then - SRCARCH="x86" -elif [ "$ARCH" = "x86_64" ]; then - SRCARCH="$( uname -m )" -fi - - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-linux-$SRCARCH-$VERSION* -tar xvf $CWD/$PRGNAM-linux-$SRCARCH-$VERSION*.tgz -cd $PRGNAM-linux-$SRCARCH-$VERSION* +rm -rf $PRGNAM-$VERSION +unzip -d $PRGNAM-$VERSION $CWD/$PRGNAM-$VERSION-*.zip +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |