aboutsummaryrefslogtreecommitdiff
path: root/network/Signal-Desktop/Signal-Desktop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/Signal-Desktop/Signal-Desktop.SlackBuild')
-rw-r--r--network/Signal-Desktop/Signal-Desktop.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/network/Signal-Desktop/Signal-Desktop.SlackBuild b/network/Signal-Desktop/Signal-Desktop.SlackBuild
index 76636726d6c5f..b37c036d36edc 100644
--- a/network/Signal-Desktop/Signal-Desktop.SlackBuild
+++ b/network/Signal-Desktop/Signal-Desktop.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Signal-Desktop
-# Copyright 2017 Rodrigo Gimenez <rodrigog83[at]gmail[dot]com>
+# Copyright 2017 Rodrigo Gimenez <estrod[at]zoho[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -35,7 +35,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -49,23 +48,28 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $TMP/$PRGNAM-$VERSION
-npm install
-node_modules/grunt-cli/bin/grunt -f
chown -R root:root .
+
+npm install
+node_modules/grunt-cli/bin/grunt
+
cd dist
+
install -Ddm755 "$PKG/opt/$PRGNAM"
-install -Ddm755 "$PKG/usr/bin"
-install -Ddm755 "$PKG/usr/share/applications"
cp -r * "$PKG/opt/$PRGNAM"
+
+install -Ddm755 "$PKG/usr/bin"
echo -e "#!/bin/bash\n/usr/bin/nw /opt/$PRGNAM" > "$PKG/usr/bin/signal"
chmod +x "$PKG/usr/bin/signal"
+install -Ddm755 "$PKG/usr/share/applications"
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
for icon_size in 16 32 48 128 250 256; do
icon_dir="$PKG/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"