summaryrefslogtreecommitdiffstats
path: root/network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild')
-rw-r--r--network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild b/network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild
index 757ee6a2df..50ae0ff1be 100644
--- a/network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild
+++ b/network/protonmail-import-export-app/protonmail-import-export-app.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for protonmail-import-export-app
-# Copyright 2020-2021 Erich Ritz
+# Copyright 2020-2021 Erich Ritz, Jenks, Oklahoma, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=protonmail-import-export-app
-VERSION=${VERSION:-1.2.3}
+VERSION=${VERSION:-1.3.3}
DEBVERSION=${DEBVERSION:--1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -41,6 +43,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
# Upstream only has binary support for x86_64 at present.
if [ "$ARCH" = "x86_64" ]; then
DEBARCH="amd64"
@@ -63,8 +70,9 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mv $PKG/usr/lib $PKG/usr/lib64
+strip --strip-unneeded $PKG/usr/lib64/protonmail/import-export/proton-ie-launcher
rm $PKG/usr/bin/protonmail-import-export-app
-ln -s /usr/lib64/protonmail/import-export/protonmail-import-export-app $PKG/usr/bin/protonmail-import-export-app
+ln -s /usr/lib64/protonmail/import-export/proton-ie-launcher $PKG/usr/bin/protonmail-import-export-app
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/protonmail/import-export/* $PKG/usr/doc/$PRGNAM-$VERSION/
@@ -77,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE