diff options
-rw-r--r-- | network/synochat/README | 8 | ||||
-rw-r--r-- | network/synochat/doinst.sh | 14 | ||||
-rw-r--r-- | network/synochat/douninst.sh | 5 | ||||
-rw-r--r-- | network/synochat/slack-desc | 19 | ||||
-rw-r--r-- | network/synochat/synochat.SlackBuild | 77 | ||||
-rw-r--r-- | network/synochat/synochat.info | 10 |
6 files changed, 133 insertions, 0 deletions
diff --git a/network/synochat/README b/network/synochat/README new file mode 100644 index 0000000000..cdf5b478b6 --- /dev/null +++ b/network/synochat/README @@ -0,0 +1,8 @@ +synochat is the Synology Chat Client desktop software. + +Synology Chat is a service which runs on Synology NAS systems. +Communicate easily and securely with an all-in-one, license-free, and +private cloud messaging service. + +The SlackBuild script downloads the .deb direct from Synology, +extracts and installs it. diff --git a/network/synochat/doinst.sh b/network/synochat/doinst.sh new file mode 100644 index 0000000000..6fdea31db5 --- /dev/null +++ b/network/synochat/doinst.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +ln -s '/opt/Synology Chat/synochat' '/usr/bin/synochat' + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/network/synochat/douninst.sh b/network/synochat/douninst.sh new file mode 100644 index 0000000000..0cdaef54f4 --- /dev/null +++ b/network/synochat/douninst.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +rm -f '/usr/bin/synochat' +update-desktop-database -q diff --git a/network/synochat/slack-desc b/network/synochat/slack-desc new file mode 100644 index 0000000000..b9c9da1293 --- /dev/null +++ b/network/synochat/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +synochat: synochat (Synology Chat Client) +synochat: +synochat: Synology Chat is a service which runs on Synology NAS systems. +synochat: Communicate easily and securely with an all-in-one, license-free, +synochat: and private cloud messaging service. +synochat: +synochat: +synochat: +synochat: +synochat: +synochat: https://www.synology.com/dsm/feature/chat diff --git a/network/synochat/synochat.SlackBuild b/network/synochat/synochat.SlackBuild new file mode 100644 index 0000000000..b8f0deea3c --- /dev/null +++ b/network/synochat/synochat.SlackBuild @@ -0,0 +1,77 @@ +#!/bin/bash -e + +# Slackware build script for synochat + +# Copyright 2025 Stephen Newberry, New Jersey, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Initial Variables +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=synochat +VERSION=${VERSION:-1.2.3} +MINORVERSION=${MINORVERSION:-0232} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +# Extract the sources here +DEBNAME="Synology Chat Client-$VERSION-$MINORVERSION.deb" +ar x "$CWD/$DEBNAME" +mkdir $PKG +tar xvf data.tar.xz -C $PKG +cd $PKG +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# Synology puts a build changelog here +# Not allowed in Slackbuilds packages +rm -r $PKG/usr/share/doc/ + +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 + +# doinst.sh +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/synochat/synochat.info b/network/synochat/synochat.info new file mode 100644 index 0000000000..e0d0fff789 --- /dev/null +++ b/network/synochat/synochat.info @@ -0,0 +1,10 @@ +PRGNAM="synochat" +VERSION="1.2.3" +HOMEPAGE="https://www.synology.com/dsm/feature/chat" +DOWNLOAD="https://global.synologydownload.com/download/Utility/ChatClient/1.2.3-0232/Ubuntu/x86_64/Synology%20Chat%20Client-1.2.3-0232.deb" +MD5SUM="790aa0454140b6a289e31b84a86a09cd" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="scrot" +MAINTAINER="Stephen Newberry" +EMAIL="stephen@shielddigitaldesign.com" |