From d5fcf8e715b3d7a7482b235ecfffad16857ff11d Mon Sep 17 00:00:00 2001 From: fsLeg Date: Tue, 11 Mar 2025 21:44:46 +0300 Subject: [PATCH] popcorntime: prevent pollution of the filesystem --- popcorntime/popcorntime.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/popcorntime/popcorntime.SlackBuild b/popcorntime/popcorntime.SlackBuild index be9f2bf..29affe9 100644 --- a/popcorntime/popcorntime.SlackBuild +++ b/popcorntime/popcorntime.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Slackware build script for Popcorn Time +# Slackware build script for popcorntime # Copyright 2025 Vladislav 'fsleg' Borisov, Moscow, Russia # All rights reserved. @@ -100,13 +100,17 @@ patch -p1 < $CWD/copy-libatomic_fixes.patch # Use a proper nwjs version sed -i "s|\(const defaultNwVersion = '\)[0-9.]\+|\1${NWVER}|" gulpfile.js -# Make yarn use vendored sources and system node.js headers YARN_YARN_OFFLINE_MIRROR="./vendor" \ +YARN_CACHE_FOLDER="./cache" \ +npm_config_cache="./cache" \ npm_config_nodedir="/usr" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ yarn install --ignore-engines --frozen-lockfile --offline -yarn build --offline + +YARN_CACHE_FOLDER="./cache" \ +npm_config_cache="./cache" \ +yarn build --no-update-notifier # Fix permissions find build/Popcorn-Time/linux$BITS -type f -perm -u+r -exec chmod a+r {} \; -- 2.46.3