summaryrefslogtreecommitdiff
path: root/network/davmail/davmail.SlackBuild
diff options
context:
space:
mode:
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 \