network/armcord: Updated for version 3.1.4.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matthew Miller 2023-01-24 18:28:53 +00:00 committed by Willy Sudiarto Raharjo
parent 344d42df9f
commit e27c788859
No known key found for this signature in database
GPG key ID: 3F617144D7238786
6 changed files with 31 additions and 11 deletions

View file

@ -3,3 +3,9 @@ armcord (Discord custom client)
armcord is a custom client designed to enhance your Discord
experience while keeping everything lightweight.

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=armcord
SRCNAM=ArmCord
VERSION=${VERSION:-3.1.0}
VERSION=${VERSION:-3.1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -39,6 +39,9 @@ if [ -z "$ARCH" ]; then
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
@ -53,8 +56,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $PKG/$SRCNAM-$VERSION
ar x $CWD/${SRCNAM}_${VERSION}_amd64.deb data.tar.xz
tar xvf $PKG/data.tar.xz
rm $PKG/data.tar.xz
chown -R root:root .
find -L . \
@ -66,11 +70,10 @@ find -L . \
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
mkdir -p $PKG/usr/bin
( cd $PKG/usr/bin ; ln -sf /opt/$SRCNAM/$PRGNAM $PRGNAM )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Don't need these:

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=ArmCord
Terminal=false
Exec=/usr/local/bin/armcord
Name=armcord
Icon=/usr/share/icons/armcord_icon.png

View file

@ -1,10 +1,10 @@
PRGNAM="armcord"
VERSION="3.1.0"
VERSION="3.1.4"
HOMEPAGE="https://github.com/ArmCord/ArmCord"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://github.com/ArmCord/ArmCord/archive/v3.1.0/ArmCord-3.1.0.tar.gz"
MD5SUM_x86_64="08e45c495d09e54e3cc36c318f16d660"
DOWNLOAD_x86_64="https://github.com/ArmCord/ArmCord/releases/download/v3.1.4/ArmCord_3.1.4_amd64.deb"
MD5SUM_x86_64="202e8855b5b76933cf855583ace4a529"
REQUIRES=""
MAINTAINER="Matthew Miller"
EMAIL="mattallmill@gmail.com"

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

@ -2,4 +2,7 @@ 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/
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