network/slack: Updated for version 4.28.184.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ruari Oedegaard 2022-10-18 19:51:04 +07:00 committed by Willy Sudiarto Raharjo
parent 7315c0046e
commit f462f36843
2 changed files with 17 additions and 37 deletions

View file

@ -29,28 +29,23 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slack
VERSION=${VERSION:-4.28.182}
VERSION=${VERSION:-4.28.184}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# A trick to find the latest slack package details, using snap meta data
# wget -qO- --header Snap-Device-Series:\ 16 https://api.snapcraft.io/v2/snaps/info/slack | python -mjson.tool
SNAPREVISION=${SNAPREVISION:-67}
SNAPPKG=JUJH91Ved74jd4ZgJCpzMBtYbPOzTlsD_$SNAPREVISION.snap
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
x86_64) ARCH=x86_64 ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
fi
DEBARCH=${DEBARCH:-$(uname -m)}
case "$DEBARCH" in
i?86) DEBARCH="i386" ;;
x86_64) DEBARCH="amd64" ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
# 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.
@ -63,20 +58,6 @@ 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 -e
rm -rf $PKG
@ -85,7 +66,11 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
ar p $CWD/${PRGNAM}-desktop-${VERSION}-${DEBARCH}.deb data.tar.xz | tar xJv
unsquashfs -q -f -d . $CWD/$SNAPPKG usr/lib/slack usr/share/pixmaps/slack.png meta/gui/slack.desktop
mkdir -p usr/bin usr/share/applications
ln -s ../../usr/lib/slack/slack usr/bin/slack
sed 's,\${SNAP},,' meta/gui/slack.desktop > usr/share/applications/slack.desktop
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -93,12 +78,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mv * $PKG/
## we do not need a debian cron job :^)
rm -rf $PKG/etc/
## nor lintian stuff and another copy of LICENSE
rm -rf $PKG/usr/share/{doc,lintian}
mv usr $PKG/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
cp -a $PKG/usr/lib/slack/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION/

View file

@ -1,10 +1,10 @@
PRGNAM="slack"
VERSION="4.28.182"
VERSION="4.28.184"
HOMEPAGE="https://slack.com"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://downloads.slack-edge.com/releases/linux/4.28.182/prod/x64/slack-desktop-4.28.182-amd64.deb"
MD5SUM_x86_64="6d8b7bd98925b241d9898f8ead70167c"
DOWNLOAD_x86_64="https://api.snapcraft.io/api/v1/snaps/download/JUJH91Ved74jd4ZgJCpzMBtYbPOzTlsD_67.snap"
MD5SUM_x86_64="a869f81977be06551c04cafa679aa20c"
REQUIRES=""
MAINTAINER="Ruari Oedegaard"
EMAIL="sbo@ruari.com"