diff options
author | Lockywolf <for_sbo.nheko_2023-10-18@lockywolf.net> | 2023-10-19 13:06:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-10-19 13:45:48 +0700 |
commit | eeb7d0f3bf6010721c7265661f24c2155c0da0d0 (patch) | |
tree | 4dc3c237eb1bd3c1961886d403ae969123060443 /network | |
parent | be7a079d8c2e9cc274f5da8100d307b1d9e17080 (diff) |
network/nheko: Added (matrix client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/nheko/README | 26 | ||||
-rw-r--r-- | network/nheko/doinst.sh | 9 | ||||
-rw-r--r-- | network/nheko/douninst.sh | 9 | ||||
-rw-r--r-- | network/nheko/nheko.SlackBuild | 142 | ||||
-rw-r--r-- | network/nheko/nheko.info | 12 | ||||
-rw-r--r-- | network/nheko/slack-desc | 19 |
6 files changed, 217 insertions, 0 deletions
diff --git a/network/nheko/README b/network/nheko/README new file mode 100644 index 0000000000000..c8f3acf246baf --- /dev/null +++ b/network/nheko/README @@ -0,0 +1,26 @@ +nheko is a native client for the Matrix network. + +Most of the features you would expect from a chat application are +missing right now but we are getting close to a more feature complete +client. Specifically there is support for: + +E2E encryption. +VoIP calls (voice & video). +User registration. +Creating, joining & leaving rooms. +Sending & receiving invites. +Sending & receiving files and emoji (inline widgets for images, audio +and file messages). +Replies with text, images and other media (and actually render them +as inline widgets). +Typing notifications. +Username auto-completion. +Message & mention notifications. +Redacting messages. +Read receipts. +Basic communities support. +Room switcher (ctrl-K). +Light, Dark & System themes. +Creating separate profiles (command line only, use -p name). +D-Bus API to allow integration with third-party plugins (does not +support Windows or macOS). diff --git a/network/nheko/doinst.sh b/network/nheko/doinst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/network/nheko/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +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 diff --git a/network/nheko/douninst.sh b/network/nheko/douninst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/network/nheko/douninst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +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 diff --git a/network/nheko/nheko.SlackBuild b/network/nheko/nheko.SlackBuild new file mode 100644 index 0000000000000..46e500bad6518 --- /dev/null +++ b/network/nheko/nheko.SlackBuild @@ -0,0 +1,142 @@ +#!/bin/bash + +# Slackware build script for nheko + +# Copyright 2023, Lockywolf +# 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=nheko +VERSION=${VERSION:-0.11.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +cp $CWD/lmdb++.h includes/ + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p build +cd build +cmake \ + -DHUNTER_ENABLED=OFF \ + -DUSE_BUNDLED_SPDLOG=OFF \ + -DUSE_BUNDLED_OLM=OFF \ + -DUSE_BUNDLED_CMARK=OFF \ + -DUSE_BUNDLED_JSON=OFF \ + -DUSE_BUNDLED_OPENSSL=OFF \ + -DUSE_BUNDLED_MTXCLIENT=OFF \ + -DUSE_BUNDLED_LMDB=OFF \ + -DUSE_BUNDLED_LMDBXX=OFF \ + -DUSE_BUNDLED_QTKEYCHAIN=OFF \ + -DUSE_BUNDLED_COEURL=OFF \ + -DUSE_BUNDLED_LIBEVENT=OFF \ + -DUSE_BUNDLED_LIBCURL=OFF \ + -DUSE_BUNDLED_RE2=OFF \ + -DUSE_BUNDLED_CPPHTTPLIB=ON \ + -DUSE_BUNDLED_BLURHASH=ON \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. + +mkdir -p $PKG/usr/man/ +mv $PKG/usr/share/man/* $PKG/usr/man/ +rmdir $PKG/usr/share/man + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README.md CHANGELOG.md COPYING \ + $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/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/nheko/nheko.info b/network/nheko/nheko.info new file mode 100644 index 0000000000000..71082888eb8c6 --- /dev/null +++ b/network/nheko/nheko.info @@ -0,0 +1,12 @@ +PRGNAM="nheko" +VERSION="0.11.3" +HOMEPAGE="https://github.com/Nheko-Reborn/nheko/" +DOWNLOAD="https://github.com/Nheko-Reborn/nheko/archive/v0.11.3/nheko-0.11.3.tar.gz \ +https://raw.githubusercontent.com/hoytech/lmdbxx/1.0.0/lmdb++.h" +MD5SUM="ec254f372b397d0c24c6d9075aac1335 \ +153c1d78ae29c4251afb7fbd8148d6eb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="mtxclient cmark" +MAINTAINER="Lockywolf" +EMAIL="for_sbo.nheko_2023-10-18@lockywolf.net" diff --git a/network/nheko/slack-desc b/network/nheko/slack-desc new file mode 100644 index 0000000000000..cd8cbef1cd534 --- /dev/null +++ b/network/nheko/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------------------------------------------------------| +nheko: nheko (matrix client written in C++) +nheko: +nheko: The motivation behind the project is to provide a native desktop app +nheko: for Matrix. +nheko: +nheko: +nheko: +nheko: +nheko: +nheko: +nheko: |