editors/linux-r7-office: Bring back ${LOCALBASE} substitution.
Reported by: fluffy Sponsored by: Serenity Cybersecurity, LLC
This commit is contained in:
parent
ee22f704e4
commit
a80ae88b4b
4 changed files with 6 additions and 5 deletions
|
@ -33,6 +33,7 @@ post-extract:
|
||||||
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} data.tar.xz ${EXTRACT_AFTER_ARGS}
|
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} data.tar.xz ${EXTRACT_AFTER_ARGS}
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
${REINPLACE_CMD} -i '' 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKDIR}/usr/bin/r7-office-*
|
||||||
${REINPLACE_CMD} -i '' 's|/usr/bin/|${PREFIX}/bin/|' ${WRKDIR}/usr/share/applications/*.desktop
|
${REINPLACE_CMD} -i '' 's|/usr/bin/|${PREFIX}/bin/|' ${WRKDIR}/usr/share/applications/*.desktop
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- SOURCE_DOC_DIR="/opt/r7-office/desktopeditors/converter/empty"
|
- SOURCE_DOC_DIR="/opt/r7-office/desktopeditors/converter/empty"
|
||||||
+ SOURCE_DOC_DIR="/usr/local/share/r7-office/desktopeditors/converter/empty"
|
+ SOURCE_DOC_DIR="%%LOCALBASE%%/share/r7-office/desktopeditors/converter/empty"
|
||||||
|
|
||||||
set_names_ru
|
set_names_ru
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
|
|
||||||
-DIR=/opt/r7-office/desktopeditors
|
-DIR=/opt/r7-office/desktopeditors
|
||||||
-DIR_MV=/opt/r7-office/mediaviewer
|
-DIR_MV=/opt/r7-office/mediaviewer
|
||||||
+DIR=/usr/local/share/r7-office/desktopeditors
|
+DIR=%%LOCALBASE%%/share/r7-office/desktopeditors
|
||||||
+DIR_MV=/usr/local/share/r7-office/mediaviewer
|
+DIR_MV=%%LOCALBASE%%/share/r7-office/mediaviewer
|
||||||
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV:$LD_LIBRARY_PATH
|
||||||
export VLC_PLUGIN_PATH=$DIR_MV/plugins
|
export VLC_PLUGIN_PATH=$DIR_MV/plugins
|
||||||
+export LC_CTYPE=ru_RU.UTF-8
|
+export LC_CTYPE=ru_RU.UTF-8
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
-DIR=/opt/r7-office/mediaviewer
|
-DIR=/opt/r7-office/mediaviewer
|
||||||
+DIR=/usr/local/share/r7-office/mediaviewer
|
+DIR=%%LOCALBASE%%/share/r7-office/mediaviewer
|
||||||
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
|
||||||
+export LC_CTYPE=ru_RU.UTF-8
|
+export LC_CTYPE=ru_RU.UTF-8
|
||||||
exec $DIR/ImageViewer "$@"
|
exec $DIR/ImageViewer "$@"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
-DIR=/opt/r7-office/mediaviewer
|
-DIR=/opt/r7-office/mediaviewer
|
||||||
+DIR=/usr/local/share/r7-office/mediaviewer
|
+DIR=%%LOCALBASE%%/share/r7-office/mediaviewer
|
||||||
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
|
||||||
+export LC_CTYPE=ru_RU.UTF-8
|
+export LC_CTYPE=ru_RU.UTF-8
|
||||||
exec $DIR/VideoPlayer "$@"
|
exec $DIR/VideoPlayer "$@"
|
||||||
|
|
Loading…
Reference in a new issue