summaryrefslogtreecommitdiff
path: root/network/offlineimap/offlineimap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/offlineimap/offlineimap.SlackBuild')
-rw-r--r--network/offlineimap/offlineimap.SlackBuild20
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 \) \