aboutsummaryrefslogtreecommitdiff
path: root/app/crypt/gnupg2
diff options
context:
space:
mode:
Diffstat (limited to 'app/crypt/gnupg2')
-rwxr-xr-xapp/crypt/gnupg2/gnupg2.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/crypt/gnupg2/gnupg2.SlackBuild b/app/crypt/gnupg2/gnupg2.SlackBuild
index d0d0e2fd..b8fe3792 100755
--- a/app/crypt/gnupg2/gnupg2.SlackBuild
+++ b/app/crypt/gnupg2/gnupg2.SlackBuild
@@ -48,14 +48,14 @@ fi
ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
-ERROR_PATCH=40
+ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
# Clean up any leftovers of previous builds
-rm -rf $SRC_NAME-$VERSION
-rm -rf $PKG
-mkdir -p $SRC_DIR
-mkdir -p $PKG
-mkdir -p $REPOS
+rm -rf $SRC_NAME-$VERSION 2> /dev/null
+rm -rf $PKG 2> /dev/null
+mkdir -p $SRC_DIR || exit $ERROR_MKDIR
+mkdir -p $PKG || exit $ERROR_MKDIR
+mkdir -p $REPOS || exit $ERROR_MKDIR
# Import (minimized) signing key from
# http://www.gnupg.org/(en)/signature_key.html
@@ -113,13 +113,13 @@ chmod 4755 $PKG/$PREFIX/bin/{gpg2,gpgv2,gpg-agent,gpgsm}
mv -f $PKG/$PREFIX/share/info $PKG/$PREFIX/
mv -f $PKG/$PREFIX/share/man $PKG/$PREFIX/
mv -f $PKG/$PREFIX/share/gnupg $PKG/$PREFIX/share/gnupg2
-rm -rf $PKG/$PREFIX/info/dir
+rm -f $PKG/$PREFIX/info/dir
gzip -9 $PKG/$PREFIX/info/*
gzip -9 $PKG/$PREFIX/man/*/*
# Install documentation
DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* THANKS TODO VERSION"
-mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
( cd $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
ln -sf /$PREFIX/share/$PKG_NAME/FAQ .
@@ -127,7 +127,7 @@ cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
)
# Add slack-desc file
-mkdir -p $PKG/install
+mkdir -p $PKG/install || exit $ERROR_MKDIR
cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
@@ -156,5 +156,5 @@ makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPK
# Delete build directory, if requested
if [ "$CLEANUP" == "yes" ]; then
- rm -rf $PKG
+ rm -rf $PKG $CWD/$PACKAGE-$VERSION
fi