summaryrefslogtreecommitdiff
path: root/network/davmail/davmail.SlackBuild
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2016-02-21 09:35:36 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-21 09:35:36 +0700
commitc08ea6b407d2d761370a0128aef527757d42cdd6 (patch)
tree84e593c662590a56e979eede1bb0427ff19586ac /network/davmail/davmail.SlackBuild
parent7ba5982dbf735cb0000e5b15a3fbe30da89ab169 (diff)
downloadslackbuilds-c08ea6b407d2d761370a0128aef527757d42cdd6.tar.gz
network/davmail: Updated for version 4.7.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/davmail/davmail.SlackBuild')
-rw-r--r--network/davmail/davmail.SlackBuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/network/davmail/davmail.SlackBuild b/network/davmail/davmail.SlackBuild
index 44a2109bf6..fdbbcd2627 100644
--- a/network/davmail/davmail.SlackBuild
+++ b/network/davmail/davmail.SlackBuild
@@ -21,11 +21,13 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
# Written by Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
+# Modified by Mario Preksavec <mario@slackware.hr>
PRGNAM=davmail
-VERSION=${VERSION:-4.6.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.7.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -33,22 +35,30 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-MARCH=$( uname -m )
if [ -z "$ARCH" ]; then
- case "$MARCH" in
- i?86) export ARCH=x86 ;;
- *) export ARCH=$MARCH ;;
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
+if [ "$ARCH" = "i486" ]; 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-$ARCH-$VERSION*
-tar xvf $CWD/$PRGNAM-linux-$ARCH-$VERSION*.tgz
-cd $PRGNAM-linux-$ARCH-$VERSION*
+rm -rf $PRGNAM-linux-$SRCARCH-$VERSION*
+tar xvf $CWD/$PRGNAM-linux-$SRCARCH-$VERSION*.tgz
+cd $PRGNAM-linux-$SRCARCH-$VERSION*
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \