Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix `--gnome_shell_libdir` * add `--chrome_nmhdir`, `--chromium_nmhdir` and `--mozilla_nmhdir` * don't clobber relative paths if DESTDIR is unset
- Loading branch information
1 parent
dccdfa1
commit 46273a8
Showing
3 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
#!/bin/bash | ||
|
||
DESTDIR_SYSCONFDIR=${DESTDIR}/${1} | ||
# Use DESTDIR if defined | ||
if [ -n "${DESTDIR}" ]; then | ||
CHROME_NMHDIR=${DESTDIR}/${1} | ||
else | ||
CHROME_NMHDIR=${1} | ||
fi | ||
|
||
mkdir -p ${DESTDIR_SYSCONFDIR}/opt/chrome/native-messaging-hosts/ | ||
mkdir -p ${CHROME_NMHDIR} | ||
cp ${MESON_BUILD_ROOT}/org.gnome.shell.extensions.gsconnect.json-chrome \ | ||
${DESTDIR_SYSCONFDIR}/opt/chrome/native-messaging-hosts/org.gnome.shell.extensions.gsconnect.json | ||
${CHROME_NMHDIR}/org.gnome.shell.extensions.gsconnect.json | ||
|
||
mkdir -p ${DESTDIR_SYSCONFDIR}/chromium/native-messaging-hosts/ | ||
|
||
# Use DESTDIR if defined | ||
if [ -n "${DESTDIR}" ]; then | ||
CHROMIUM_NMHDIR=${DESTDIR}/${2} | ||
else | ||
CHROME_NMHDIR=${2} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
fi | ||
|
||
mkdir -p ${CHROMIUM_NMHDIR}/chromium/native-messaging-hosts | ||
This comment has been minimized.
Sorry, something went wrong. |
||
cp ${MESON_BUILD_ROOT}/org.gnome.shell.extensions.gsconnect.json-chrome \ | ||
${DESTDIR_SYSCONFDIR}/chromium/native-messaging-hosts/org.gnome.shell.extensions.gsconnect.json | ||
${CHROMIUM_NMHDIR}/org.gnome.shell.extensions.gsconnect.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# See https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki/Packaging | ||
|
||
option('gnome_shell_libdir', type: 'string', value: '', description: 'LIBDIR for Gnome Shell') | ||
option('mozilla_libdir', type: 'string', value: '', description: 'LIBDIR for Mozilla') | ||
|
||
option('session_bus_services_dir', type: 'string', value: '', description: 'DBus session services directory') | ||
option('nautilus', type: 'boolean', value: true, description: 'enable nautilus-python extension') | ||
|
||
option('webextension', type: 'boolean', value: true, description: 'enable WebExtension for Chrome/Firefox') | ||
option('chrome_nmhdir', type: 'string', value: '', description: 'Native Messaging Host directory for Chrome') | ||
option('chromium_nmhdir', type: 'string', value: '', description: 'Native Messaging Host directory for Chromium') | ||
option('mozilla_nmhdir', type: 'string', value: '', description: 'Native Messaging Host directory for Mozilla') | ||
|
This should be
CHROMIUM_NMHDIR
.