network/anydesk: Updated for version 6.1.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
f0c6364a75
commit
58616c52fb
|
@ -23,16 +23,17 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=anydesk
|
||||
VERSION=${VERSION:-6.0.1}
|
||||
VERSION=${VERSION:-6.1.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
ARCH=$( uname -m )
|
||||
fi
|
||||
|
||||
if [ "$ARCH" != "x86_64" ]; then
|
||||
echo "Package for $ARCH architecture is not available."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -42,15 +43,6 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
set -e
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
BITS="amd64"
|
||||
else
|
||||
echo "Package for $(uname -m) architecture is not available."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
|
@ -71,7 +63,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
mkdir -p $PKG/etc/rc.d/
|
||||
cp $CWD/rc.anydesk $PKG/etc/rc.d/rc.anydesk
|
||||
cat $CWD/rc.anydesk > $PKG/etc/rc.d/rc.anydesk.new
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="anydesk"
|
||||
VERSION="6.0.1"
|
||||
VERSION="6.1.0"
|
||||
HOMEPAGE="https://anydesk.com/"
|
||||
DOWNLOAD="UNSUPPORTED"
|
||||
MD5SUM=""
|
||||
DOWNLOAD_x86_64="https://download.anydesk.com/linux/anydesk_6.0.1-1_x86_64.rpm"
|
||||
MD5SUM_x86_64="5660c68e7dd31ce95dc74e02e74f776d"
|
||||
DOWNLOAD_x86_64="https://download.anydesk.com/linux/anydesk_6.1.0-1_x86_64.rpm"
|
||||
MD5SUM_x86_64="34fcffc15185cdd658353b95c814d0f7"
|
||||
REQUIRES="gtkglext lsb-release"
|
||||
MAINTAINER="Reza Talebi"
|
||||
EMAIL="reza.talebi.73@outlook.com"
|
||||
|
|
|
@ -1,3 +1,27 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
if [ -e $OLD ]; then
|
||||
cp -a $OLD ${NEW}.incoming
|
||||
cat $NEW > ${NEW}.incoming
|
||||
mv ${NEW}.incoming $NEW
|
||||
fi
|
||||
config $NEW
|
||||
}
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
@ -11,3 +35,5 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
|||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
preserve_perms etc/rc.d/rc.anydesk.new
|
||||
|
|
Loading…
Reference in New Issue