diff options
Diffstat (limited to 'x11-wm/nscde/files/patch-NsCDE_bin_fpclock')
-rw-r--r-- | x11-wm/nscde/files/patch-NsCDE_bin_fpclock | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/x11-wm/nscde/files/patch-NsCDE_bin_fpclock b/x11-wm/nscde/files/patch-NsCDE_bin_fpclock new file mode 100644 index 000000000000..a99260355322 --- /dev/null +++ b/x11-wm/nscde/files/patch-NsCDE_bin_fpclock @@ -0,0 +1,44 @@ +--- NsCDE/bin/fpclock.orig 2021-05-02 07:41:34 UTC ++++ NsCDE/bin/fpclock +@@ -6,7 +6,6 @@ + # Licence: GPLv3 + # + +-[ -z $NSCDE_ROOT ] && exit 2 + MARCH=$(uname -m) + + function find_colors +@@ -15,8 +14,8 @@ function find_colors + if [ -r "$FVWM_USERDIR/palettes/${NSCDE_PALETTE}.dp" ]; then + palfile="$FVWM_USERDIR/palettes/${NSCDE_PALETTE}.dp" + else +- if [ -r "$NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp" ]; then +- palfile="$NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp" ++ if [ -r "${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp" ]; then ++ palfile="${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp" + fi + fi + +@@ -25,9 +24,9 @@ function find_colors + fi + + if [ "x$palfile" != "x" ]; then +- $NSCDE_ROOT/libexec/nscde_palette_colorgen.py \ ++ ${PREFIX}/libexec/nscde/nscde_palette_colorgen.py \ + -n ${NSCDE_PALETTE_NCOLORS} \ +- -p /opt/NsCDE/share/palettes/${NSCDE_PALETTE}.dp -sl | \ ++ -p ${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp -sl | \ + egrep '(ts|bs)_color_3' | while IFS=" " read name value + do + eval "${name}"="${value}" +@@ -50,8 +49,8 @@ function find_colors + + find_colors + +-if [ -x $NSCDE_ROOT/bin/fpclock-${NSCDE_OS}_${MARCH} ]; then +- exec $NSCDE_ROOT/bin/fpclock-${NSCDE_OS}_${MARCH} -H $bs_color_3 -S $ts_color_3 "$@" ++if [ -x ${PREFIX}/bin/fpclock ]; then ++ exec ${PREFIX}/bin/fpclock -H $bs_color_3 -S $ts_color_3 "$@" + else + pclock=$(whence -p pclock) + if [ "x$pclock" != "x" ]; then |