libraries/libvmime: Support alternate zipfile name.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-03-19 17:15:59 +00:00 committed by Willy Sudiarto Raharjo
parent 20437a4411
commit 9da4717868

View file

@ -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