aboutsummaryrefslogtreecommitdiff
path: root/network/offlineimap
diff options
context:
space:
mode:
authorChess Griffin <chess@chessgriffin.com>2010-05-22 12:56:47 -0400
committerChess Griffin <chess@chessgriffin.com>2010-05-23 23:13:43 -0500
commit417a08e001f53e6b1c2186c7d5afc8b5f4cd5ea3 (patch)
tree176e29a9bfbdd538fcba042f7b3615973d5d3b68 /network/offlineimap
parent4716923d35be4ea65be3b3e0654f6f1c050b11a7 (diff)
network/offlineimap: fixed download link and MD5SUM
Also miscellaneous SlackBuild script cleanups
Diffstat (limited to 'network/offlineimap')
-rw-r--r--network/offlineimap/offlineimap.SlackBuild20
-rw-r--r--network/offlineimap/offlineimap.info6
2 files changed, 18 insertions, 8 deletions
diff --git a/network/offlineimap/offlineimap.SlackBuild b/network/offlineimap/offlineimap.SlackBuild
index 51cdfaad2ab56..ef93b6f88a9bd 100644
--- a/network/offlineimap/offlineimap.SlackBuild
+++ b/network/offlineimap/offlineimap.SlackBuild
@@ -26,11 +26,20 @@
PRGNAM=offlineimap
VERSION=6.2.0
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG=_SBo}
-SRCNAM="${PRGNAM}_${VERSION}.orig"
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
+SRCNAM="jgoerzen-offlineimap-debian-6.2.0-0-g5d4fe0c.tar.gz"
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -39,11 +48,12 @@ OUTPUT=${OUTPUT:-/tmp}
set -e # Exit on most errors
-rm -fr $TMP/$PRGNAM $PKG
+rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$SRCNAM.tar.gz
-cd $PRGNAM
+tar xvf $CWD/$SRCNAM
+mv jgoerzen-offlineimap-1a9381a $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
chown -R root.root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/network/offlineimap/offlineimap.info b/network/offlineimap/offlineimap.info
index c90fc6349ae7e..e6155652d20ae 100644
--- a/network/offlineimap/offlineimap.info
+++ b/network/offlineimap/offlineimap.info
@@ -1,8 +1,8 @@
PRGNAM="offlineimap"
VERSION="6.2.0"
-HOMEPAGE="http://software.complete.org/software/projects/show/offlineimap"
-DOWNLOAD="http://software.complete.org/software/attachments/download/413/offlineimap_6.2.0.orig.tar.gz"
-MD5SUM="a23dab23ac08de063e330fe26d08e9b9"
+HOMEPAGE="http://github.com/jgoerzen/offlineimap"
+DOWNLOAD="http://download.github.com/jgoerzen-offlineimap-debian-6.2.0-0-g5d4fe0c.tar.gz"
+MD5SUM="6a986c25452d0840346de70e9386f1ac"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"