From fd0799329115473d56198c1962452a8fee030c27 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 9 Feb 2019 15:03:56 +0100 Subject: [PATCH] appImage nextcloud-client as backup Signed-off-by: Gwenhael Le Moine --- xap/nextcloud-client/SlackBuild.appImage | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 xap/nextcloud-client/SlackBuild.appImage diff --git a/xap/nextcloud-client/SlackBuild.appImage b/xap/nextcloud-client/SlackBuild.appImage new file mode 100755 index 00000000..e0e9146a --- /dev/null +++ b/xap/nextcloud-client/SlackBuild.appImage @@ -0,0 +1,55 @@ +#!/bin/sh + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +ARCH="AppImage" +BUILD=1 + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG/opt/$PRGNAM + +# mise en place +cd $PKG/opt/$PRGNAM + +wget -c https://download.nextcloud.com/desktop/daily/Linux/latest.AppImage -O ${PRGNAM}.AppImage +chmod +x ${PRGNAM}.AppImage +VERSION=$( ./${PRGNAM}.AppImage --help | grep version | sed 's/Nextcloud version //' | sed 's/ (build /_/' | tr -d \)) + +mkdir -p $PKG$PREFIX/bin/ +( cd $PKG$PREFIX/bin/ + # ln -s ../../opt/$PRGNAM/${PRGNAM}.AppImage $PRGNAM + ln -s ../../opt/$PRGNAM/${PRGNAM}.AppImage nextcloud +) + +# correction +cd $PKG +chown -R root:root * + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM (NextCloud Desktop Syncing Client) +$PRGNAM: +$PRGNAM: nextcloud themed desktop client +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/nextcloud/client_theming +$PRGNAM: +EOF + +# empaquetage +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz