Switch pwa connector to use get_libdir

This commit is contained in:
projectmoon 2023-03-16 22:31:37 +01:00
parent b6f4dfb5da
commit a40dcf0d62
1 changed files with 4 additions and 6 deletions

View File

@ -53,8 +53,9 @@ src_prepare() {
src_install() {
# Upstream uses cargo-make, but this is not packaged in Gentoo, nor
# does it support DESTDIR, so portage sandboxes occur. The makefile
# installation instructions are very simple, so replicate them here.
# does it support DESTDIR, so portage sandbox violations occur. The
# makefile installation instructions are very simple, so replicate
# them here.
# Actual binaries
into /usr
@ -64,10 +65,7 @@ src_install() {
doexe target/release/firefoxpwa-connector
# Install native messaging host
insinto /usr/lib/mozilla/native-messaging-hosts/
newins manifests/linux.json firefoxpwa.json
insinto /usr/lib64/mozilla/native-messaging-hosts/
insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts/
newins manifests/linux.json firefoxpwa.json
# Copy the userchrome directory to the correct location