···1--- a/resources/pulsar.sh 2023-03-16 04:11:14.000000000 +0100
2+++ b/resources/pulsar.sh 2023-03-24 14:37:13.468813964 +0100
3-@@ -123,22 +123,9 @@
4 elif [ $OS == 'Linux' ]; then
5 SCRIPT=$(readlink -f "$0")
67- PULSAR_PATH="/opt/Pulsar/pulsar"
8+ # PULSAR_PATH is set-up via `wrapProgram` in the postFixup phase
9-10-- #Will allow user to get context menu on cinnamon desktop enviroment
11-- #Add a check to make sure that DESKTOP_SESSION is set before attempting to grep it
12-- #expr substr is expecting 3 arguments string, index, length
13-- #If grep doesnt find anything is provides an empty string which causes the expr: syntax error: missing argument after '8' error - see pulsar-edit/pulsar#174
14-- #Im also not quite sure why they used grep instead of simply [ "${DESKTOP_SESSION}" == "cinnamon" ]
15-- if [ -n "${DESKTOP_SESSION}" ] && [ "$(expr substr $(printenv | grep 'DESKTOP_SESSION=') 17 8)" == "cinnamon" ]; then
16-- #This local path is almost assuredly wrong as it shouldnt exist in a standard install
17-- ACTION_PATH="resources/linux/desktopenviroment/cinnamon/pulsar.nemo_action"
18--
19-- #Validate the file exists before attempting to copy it
20-- if [ -f "${ACTION_PATH}" ]; then
21-- cp "${$ACTION_PATH}" "/usr/share/nemo/actions/pulsar.nemo_action"
22-- fi
23-- fi
24-+ # We remove the nemo integration. It is handled by the postFixup phase
2526 #Set tmpdir only if tmpdir is unset
27 : ${TMPDIR:=/tmp}
···1--- a/resources/pulsar.sh 2023-03-16 04:11:14.000000000 +0100
2+++ b/resources/pulsar.sh 2023-03-24 14:37:13.468813964 +0100
3+@@ -123,7 +123,7 @@
4 elif [ $OS == 'Linux' ]; then
5 SCRIPT=$(readlink -f "$0")
67- PULSAR_PATH="/opt/Pulsar/pulsar"
8+ # PULSAR_PATH is set-up via `wrapProgram` in the postFixup phase
0000000000000000910 #Set tmpdir only if tmpdir is unset
11 : ${TMPDIR:=/tmp}
···1-## build described at http://wiki.winehq.org/Wine64
23source $stdenv/setup
4preFlags="${configureFlags}"
···16configurePhase
17buildPhase
18# checkPhase
000000000000000000001920cd $TMP/wine-wow
21sourceRoot=`pwd`
···1+## build described at https://wiki.winehq.org/Building_Wine#Shared_WoW64
23source $stdenv/setup
4preFlags="${configureFlags}"
···16configurePhase
17buildPhase
18# checkPhase
19+20+# Remove 64 bit gstreamer from PKG_CONFIG_PATH
21+IFS=":" read -ra LIST_ARRAY <<< "$PKG_CONFIG_PATH"
22+IFS=":" read -ra REMOVE_ARRAY <<< "@pkgconfig64remove@"
23+NEW_LIST_ARRAY=()
24+25+for ELEMENT in "${LIST_ARRAY[@]}"; do
26+ TO_ADD=1
27+ for REMOVE in "${REMOVE_ARRAY[@]}"; do
28+ if [[ "$REMOVE" == "$ELEMENT" ]]; then
29+ TO_ADD=0
30+ break
31+ fi
32+ done
33+34+ if [[ $TO_ADD -eq 1 ]]; then
35+ NEW_LIST_ARRAY+=("$ELEMENT")
36+ fi
37+done
38+PKG_CONFIG_PATH=$(IFS=":"; echo "${NEW_LIST_ARRAY[*]}")
3940cd $TMP/wine-wow
41sourceRoot=`pwd`