summaryrefslogtreecommitdiff
path: root/network/pCloudDrive/pCloudDrive.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/pCloudDrive/pCloudDrive.SlackBuild')
-rw-r--r--network/pCloudDrive/pCloudDrive.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/network/pCloudDrive/pCloudDrive.SlackBuild b/network/pCloudDrive/pCloudDrive.SlackBuild
index 9608a0da02..ed286a3e18 100644
--- a/network/pCloudDrive/pCloudDrive.SlackBuild
+++ b/network/pCloudDrive/pCloudDrive.SlackBuild
@@ -22,19 +22,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modifid by slackbuilds.org
+
PRGNAM=pCloudDrive
-VERSION=${VERSION:-1.8.0}
+VERSION=${VERSION:-1.8.2}
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
+case "$ARCH" in
+ i?86) break ;;
+ x86_64) break ;;
+ *)
+ echo "$ARCH is not supported for $PRGNAM-$VERSION"
+ exit 1
+ ;;
+esac
+
set -e
CWD=$(pwd)
@@ -44,11 +51,6 @@ OUTPUT=${OUTPUT:-/tmp}
APPIMGNAM=pcloud
-if [ "$ARCH" != "x86_64" -a "$ARCH" != "i586" ]; then
- echo "$ARCH is not supported for $PRGNAM-$VERSION"
- exit 1
-fi
-
rm -rf $PKG
mkdir -p $TMP $OUTPUT $PKG/{install,opt,usr/{bin,doc/$PRGNAM-$VERSION}}
cd $PKG/opt
@@ -57,7 +59,7 @@ $CWD/$APPIMGNAM --appimage-extract
mv squashfs-root $PRGNAM
cd $PKG
mv $PKG/opt/$PRGNAM/usr/share $PKG/usr
-rm -rf $PKG/opt/$PRGNAM/{usr,AppRun,pcloud.png,pcloud.desktop}
+rm -rf $PKG/opt/$PRGNAM/{usr,AppRun,pcloud.png,pcloud.desktop,resources/app/.vscode}
install -D -m 644 -t $PKG/usr/share/applications $CWD/pclouddrive.desktop
chown -R root:root .