-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mdrights
committed
Mar 24, 2018
1 parent
7feeba5
commit 5deaa85
Showing
14 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Riot.im | ||
A SlackBuild for Riot.im | ||
|
||
一种新型的“邦联式”通讯工具(Matrix 协议)。特点: | ||
|
||
- 邦联化,一改当前主流的中心化架构,使用者可以搭建自己的 Matrix服务器提供服务,即可用于团队之间交流,又可与其他 Matrix 服务器串通。因此也可以通过变换服务器(ip)来躲避GFW的封锁。 | ||
|
||
|
||
## Usage | ||
|
||
下载 官方 Riot.im 安装包(riot-web),到本 git 目录下。地址在 riot.info 里就有。 | ||
|
||
``` | ||
cd riot-web/ | ||
source ./riot.info | ||
wget -c $DOWNLOAD | ||
``` | ||
|
||
以 root 身份运行安装脚本: | ||
|
||
# ./riot.SlackBuild | ||
|
||
软件会被装到 /opt 下。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if [ -x /usr/bin/update-desktop-database ]; then | ||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 | ||
fi | ||
|
||
if [ -x /usr/bin/update-mime-database ]; then | ||
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Desktop Entry] | ||
Name=Riot.im | ||
Name[zh_CN]=Riot.im 加密聊天室 | ||
Name[zh_HK]=Riot.im 加密聊天室 | ||
Name[zh_TW]=Riot.im 加密聊天室 | ||
Comment=A feature-rich client for Matrix.org | ||
Comment[zh_CN]=一个基于 Matrix.org (邦联化)的端对端加密群聊工具 | ||
Comment[zh_HK]=一个基于 Matrix.org (邦联化)的端对端加密群聊工具 | ||
Comment[zh_TW]=一个基于 Matrix.org (邦联化)的端对端加密群聊工具 | ||
Exec=firefox /opt/Riot/index.html | ||
Terminal=false | ||
Type=Application | ||
Icon=riot-web | ||
StartupWMClass=riot | ||
Categories=Network;X-Antigfw |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VERSION="0.13.5" | ||
DOWNLOAD="https://github.com/vector-im/riot-web/releases/download/v${VERSION}/riot-v${VERSION}.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#!/bin/sh | ||
# | ||
# Slackware build script for Riot.im(aka Riot-web) | ||
# | ||
# Copyright 2011-2012 MDrights | ||
# 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. | ||
|
||
|
||
PRGNAM="riot" | ||
VERSION=${VERSION:-0.13.5} | ||
BUILD=${BUILD:-4} | ||
TAG=${TAG:-_MD} | ||
|
||
|
||
if [ -z "$ARCH" ]; then | ||
case "$( uname -m )" in | ||
i?86) ARCH=i586 ;; | ||
arm*) ARCH=arm ;; | ||
*) ARCH=$( uname -m ) ;; | ||
esac | ||
fi | ||
|
||
CWD=$(pwd) | ||
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" | ||
else | ||
SLKCFLAGS="-O2" | ||
LIBDIRSUFFIX="" | ||
fi | ||
|
||
|
||
|
||
set -eu | ||
|
||
rm -rf $PKG | ||
mkdir -p $TMP $PKG $OUTPUT | ||
cd $TMP | ||
rm -rf $PRGNAM-$VERSION | ||
tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz | ||
|
||
chown -R root:root $PRGNAM-v$VERSION | ||
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 {} \; | ||
|
||
|
||
# Riot.im package can be used via web browser directly. So when unpacked, copy it to the place and to be packaged. | ||
mkdir -p $PKG/opt | ||
cp -r $PRGNAM-v$VERSION $PKG/opt/ | ||
mv $PKG/opt/$PRGNAM-v$VERSION $PKG/opt/Riot | ||
|
||
# Copy desktop file and icons. | ||
mkdir -p $PKG/usr/share/applications/ | ||
cp $CWD/riot-web.desktop ${PKG}/usr/share/applications/ | ||
|
||
for dpi in 128 16 24 256 48 64 96 512; do | ||
PNG="$PKG/usr/share/icons/hicolor/${dpi}x${dpi}/apps/" | ||
mkdir -p $PNG | ||
cp $CWD/riot-web.png.${dpi} ${PNG}/riot-web.png | ||
done | ||
|
||
mkdir -p $PKG/install | ||
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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------------------------------------------------------| | ||
riot: Riot (aka Riot.im, Riot-web, Vector) | ||
riot: Riot.im is a Matrix web client built using the Matrix React SDK. | ||
riot: | ||
riot: | ||
riot: | ||
riot: | ||
riot: | ||
riot: | ||
riot: Project URL: https://riot.im | ||
riot: | ||
riot: |