aboutsummaryrefslogtreecommitdiff
path: root/network/protonmail-bridge/protonmail-bridge.SlackBuild
diff options
context:
space:
mode:
authorErich Ritz <erich.public@protonmail.com>2021-01-09 09:35:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-09 09:35:15 +0700
commit1777722db8a861145a87f9ca9191fe79be45d784 (patch)
tree8f9bd7ae6f5f41666f8389ed38946cd82bef1ab3 /network/protonmail-bridge/protonmail-bridge.SlackBuild
parentfc17acadc34f6d76801a85ac333364fac2f7b8bd (diff)
network/protonmail-bridge: Updated for version 1.5.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/protonmail-bridge/protonmail-bridge.SlackBuild')
-rw-r--r--network/protonmail-bridge/protonmail-bridge.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/network/protonmail-bridge/protonmail-bridge.SlackBuild b/network/protonmail-bridge/protonmail-bridge.SlackBuild
index b49a286a58f67..d441debeb1f3a 100644
--- a/network/protonmail-bridge/protonmail-bridge.SlackBuild
+++ b/network/protonmail-bridge/protonmail-bridge.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for protonmail-bridge
-# Copyright 2018-2020 Erich Ritz
+# Copyright 2018-2021 Erich Ritz
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=protonmail-bridge
-VERSION=${VERSION:-1.5.2}
+VERSION=${VERSION:-1.5.4}
DEBVERSION=${DEBVERSION:--1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,7 +54,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/${PRGNAM}_${VERSION}${DEBVERSION}_$DEBARCH.deb data.tar.xz | tar xJv
+ar p $CWD/${PRGNAM}_${VERSION}${DEBVERSION}_$DEBARCH.deb data.tar.gz | tar xzv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -62,8 +62,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+mv $PKG/usr/lib $PKG/usr/lib64
+rm $PKG/usr/bin/protonmail-bridge
+ln -s /usr/lib64/protonmail/bridge/protonmail-bridge $PKG/usr/bin/protonmail-bridge
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $PKG/usr/lib/protonmail/bridge/{Changelog.md,LICENSE} $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/protonmail/bridge/* $PKG/usr/doc/$PRGNAM-$VERSION/
+mv $PKG/usr/share/doc/protonmail-bridge/* $PKG/usr/doc/$PRGNAM-$VERSION/
+rm -rf $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install