diff options
author | Reza Talebi <reza.talebi.73@outlook.com> | 2021-04-10 03:59:11 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-10 17:04:43 +0700 |
commit | 58616c52fbccab8e70c89cb4c9363029729023a8 (patch) | |
tree | d262051819b2f051b4a0156258b10c465367c93c /network/anydesk | |
parent | f0c6364a757e76bedc1fb759a7a09a23894c3d07 (diff) |
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>
Diffstat (limited to 'network/anydesk')
-rw-r--r-- | network/anydesk/anydesk.SlackBuild | 24 | ||||
-rw-r--r-- | network/anydesk/anydesk.info | 6 | ||||
-rw-r--r-- | network/anydesk/doinst.sh | 26 |
3 files changed, 37 insertions, 19 deletions
diff --git a/network/anydesk/anydesk.SlackBuild b/network/anydesk/anydesk.SlackBuild index aac6be4bfd766..dff8b6f1b511b 100644 --- a/network/anydesk/anydesk.SlackBuild +++ b/network/anydesk/anydesk.SlackBuild @@ -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} diff --git a/network/anydesk/anydesk.info b/network/anydesk/anydesk.info index 1ab5b2b2fbc1e..15a9deed47769 100644 --- a/network/anydesk/anydesk.info +++ b/network/anydesk/anydesk.info @@ -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" diff --git a/network/anydesk/doinst.sh b/network/anydesk/doinst.sh index aea0f894eb32b..4a1462ff3a12d 100644 --- a/network/anydesk/doinst.sh +++ b/network/anydesk/doinst.sh @@ -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 |