aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-03-19 17:15:59 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-20 07:37:45 +0700
commit9da47178680a922a38f0231a3c0fc1b3c18af9b4 (patch)
treef1ab191d1e56dc48787914a1aba7042d02081f73 /libraries
parent20437a441108bcff766f36893bee64811bcc4345 (diff)
libraries/libvmime: Support alternate zipfile name.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libvmime/libvmime.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/libraries/libvmime/libvmime.SlackBuild b/libraries/libvmime/libvmime.SlackBuild
index 10eb0927c8bbc..6693de9b563b0 100644
--- a/libraries/libvmime/libvmime.SlackBuild
+++ b/libraries/libvmime/libvmime.SlackBuild
@@ -61,17 +61,18 @@ fi
set -e
-rm -rf $TMP/$SRCNAM-$GITVER $PKG
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-unzip $CWD/$GITVER.zip
+rm -rf $SRCNAM-$GITVER
+unzip $CWD/$GITVER.zip || unzip $CWD/$SRCNAM-$GITVER.zip
cd $SRCNAM-$GITVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build