···11--- a/resources/pulsar.sh 2023-03-16 04:11:14.000000000 +0100
22+++ b/resources/pulsar.sh 2023-03-24 14:37:13.468813964 +0100
33-@@ -123,22 +123,9 @@
33+@@ -123,7 +123,7 @@
44 elif [ $OS == 'Linux' ]; then
55 SCRIPT=$(readlink -f "$0")
6677- PULSAR_PATH="/opt/Pulsar/pulsar"
88+ # PULSAR_PATH is set-up via `wrapProgram` in the postFixup phase
99-1010-- #Will allow user to get context menu on cinnamon desktop enviroment
1111-- #Add a check to make sure that DESKTOP_SESSION is set before attempting to grep it
1212-- #expr substr is expecting 3 arguments string, index, length
1313-- #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
1414-- #Im also not quite sure why they used grep instead of simply [ "${DESKTOP_SESSION}" == "cinnamon" ]
1515-- if [ -n "${DESKTOP_SESSION}" ] && [ "$(expr substr $(printenv | grep 'DESKTOP_SESSION=') 17 8)" == "cinnamon" ]; then
1616-- #This local path is almost assuredly wrong as it shouldnt exist in a standard install
1717-- ACTION_PATH="resources/linux/desktopenviroment/cinnamon/pulsar.nemo_action"
1818--
1919-- #Validate the file exists before attempting to copy it
2020-- if [ -f "${ACTION_PATH}" ]; then
2121-- cp "${$ACTION_PATH}" "/usr/share/nemo/actions/pulsar.nemo_action"
2222-- fi
2323-- fi
2424-+ # We remove the nemo integration. It is handled by the postFixup phase
2592610 #Set tmpdir only if tmpdir is unset
2711 : ${TMPDIR:=/tmp}
···11-## build described at http://wiki.winehq.org/Wine64
11+## build described at https://wiki.winehq.org/Building_Wine#Shared_WoW64
2233source $stdenv/setup
44preFlags="${configureFlags}"
···1616configurePhase
1717buildPhase
1818# checkPhase
1919+2020+# Remove 64 bit gstreamer from PKG_CONFIG_PATH
2121+IFS=":" read -ra LIST_ARRAY <<< "$PKG_CONFIG_PATH"
2222+IFS=":" read -ra REMOVE_ARRAY <<< "@pkgconfig64remove@"
2323+NEW_LIST_ARRAY=()
2424+2525+for ELEMENT in "${LIST_ARRAY[@]}"; do
2626+ TO_ADD=1
2727+ for REMOVE in "${REMOVE_ARRAY[@]}"; do
2828+ if [[ "$REMOVE" == "$ELEMENT" ]]; then
2929+ TO_ADD=0
3030+ break
3131+ fi
3232+ done
3333+3434+ if [[ $TO_ADD -eq 1 ]]; then
3535+ NEW_LIST_ARRAY+=("$ELEMENT")
3636+ fi
3737+done
3838+PKG_CONFIG_PATH=$(IFS=":"; echo "${NEW_LIST_ARRAY[*]}")
19392040cd $TMP/wine-wow
2141sourceRoot=`pwd`