diff options
author | Chess Griffin <chess@chessgriffin.com> | 2010-05-22 12:56:47 -0400 |
---|---|---|
committer | Chess Griffin <chess@chessgriffin.com> | 2010-05-23 23:13:43 -0500 |
commit | 417a08e001f53e6b1c2186c7d5afc8b5f4cd5ea3 (patch) | |
tree | 176e29a9bfbdd538fcba042f7b3615973d5d3b68 /network/offlineimap/offlineimap.SlackBuild | |
parent | 4716923d35be4ea65be3b3e0654f6f1c050b11a7 (diff) | |
download | slackbuilds-417a08e001f53e6b1c2186c7d5afc8b5f4cd5ea3.tar.gz |
network/offlineimap: fixed download link and MD5SUM
Also miscellaneous SlackBuild script cleanups
Diffstat (limited to 'network/offlineimap/offlineimap.SlackBuild')
-rw-r--r-- | network/offlineimap/offlineimap.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/network/offlineimap/offlineimap.SlackBuild b/network/offlineimap/offlineimap.SlackBuild index 51cdfaad2a..ef93b6f88a 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 \) \ |