summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMatthew Miller <mattallmill@gmail.com>2022-10-14 01:32:07 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-15 10:47:33 +0700
commit428ab0a946825d2f80d614a520e5f9822c1507b7 (patch)
treecfc0ae425cc8963ff96d7234f0baeb6422f54601 /network
parent4c91b8cf664cd3807a56a4153dcc891674a3e525 (diff)
downloadslackbuilds-428ab0a946825d2f80d614a520e5f9822c1507b7.tar.gz
network/armcord: Added (Discord custom client)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/armcord/README5
-rw-r--r--network/armcord/armcord.SlackBuild87
-rw-r--r--network/armcord/armcord.info10
-rw-r--r--network/armcord/doinst.sh5
-rw-r--r--network/armcord/slack-desc19
5 files changed, 126 insertions, 0 deletions
diff --git a/network/armcord/README b/network/armcord/README
new file mode 100644
index 0000000000..569ab9d033
--- /dev/null
+++ b/network/armcord/README
@@ -0,0 +1,5 @@
+
+armcord (Discord custom client)
+
+armcord is a custom client designed to enhance your Discord
+experience while keeping everything lightweight.
diff --git a/network/armcord/armcord.SlackBuild b/network/armcord/armcord.SlackBuild
new file mode 100644
index 0000000000..f271701623
--- /dev/null
+++ b/network/armcord/armcord.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+# Slackware build script for discord
+#
+# Copyright 2016-2021 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
+# 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=armcord
+SRCNAM=ArmCord
+VERSION=${VERSION:-3.0.8}
+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}
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $PKG
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $PKG/$SRCNAM-$VERSION
+
+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 {} \;
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/opt/$PRGNAM-$VERSION
+mv * $PKG/opt/$PRGNAM-$VERSION
+rm -R $PKG/$SRCNAM-$VERSION
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Don't need these:
+rm -rf $PKG/usr/share/doc $PKG/usr/share/lintian
+
+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
diff --git a/network/armcord/armcord.info b/network/armcord/armcord.info
new file mode 100644
index 0000000000..022082ef9c
--- /dev/null
+++ b/network/armcord/armcord.info
@@ -0,0 +1,10 @@
+PRGNAM="armcord"
+VERSION="3.0.8"
+HOMEPAGE="https://github.com/ArmCord/ArmCord"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/ArmCord/ArmCord/archive/v3.0.8/ArmCord-3.0.8.tar.gz"
+MD5SUM_x86_64="e45accedbf1f0f0e561af788bd05d1a2"
+REQUIRES=""
+MAINTAINER="Matthew Miller"
+EMAIL="mattallmill@gmail.com"
diff --git a/network/armcord/doinst.sh b/network/armcord/doinst.sh
new file mode 100644
index 0000000000..98fb1a807a
--- /dev/null
+++ b/network/armcord/doinst.sh
@@ -0,0 +1,5 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+ln -s /opt/armcord-3.0.8/armcord /usr/local/bin/
diff --git a/network/armcord/slack-desc b/network/armcord/slack-desc
new file mode 100644
index 0000000000..10345838c4
--- /dev/null
+++ b/network/armcord/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------------------------------------------------------|
+armcord: armcord (Discord custom client)
+armcord:
+armcord: armcord is a custom client designed to enhance your Discord
+armcord: experience while keeping everything lightweight.
+armcord:
+armcord:
+armcord: Homepage: https://github.com/ArmCord/ArmCord
+armcord:
+armcord:
+armcord:
+armcord: