diff options
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,5 @@ # Maintainer: <peter at typeblog dot net> +# Contributor: TheFool <rn6l05d28@relay.firefox.com> pkgname=firefox-pwa _pkgname="FirefoxPWA" @@ -21,6 +22,8 @@ prepare() { sed -i -e "s/static DISTRIBUTION_VERSION = .*;/static DISTRIBUTION_VERSION = '$pkgver';/" userchrome/profile/chrome/pwa/chrome.jsm # Patch to move runtime install directory inside ~/.local/share sed -i -e "s@let directory = .*\$@let directory = PathBuf::from(std::env::var(\"HOME\").unwrap()).join(\".local/share/firefoxpwa/runtime\");@" src/components/runtime.rs + # We don't use libexec on Arch + sed -i "s@/usr/libexec/firefoxpwa-connector@/usr/lib/firefoxpwa/firefoxpwa-connector@g" manifests/linux.json } build() { @@ -31,7 +34,7 @@ build() { package() { cd $srcdir/$_pkgname-$pkgver install -Dm755 native/target/release/firefoxpwa $pkgdir/usr/bin/firefoxpwa - install -Dm755 native/target/release/firefoxpwa-connector $pkgdir/usr/libexec/firefoxpwa-connector + install -Dm755 native/target/release/firefoxpwa-connector $pkgdir/usr/lib/firefoxpwa/firefoxpwa-connector install -Dm644 native/manifests/linux.json $pkgdir/usr/lib/mozilla/native-messaging-hosts/firefoxpwa.json mkdir -p $pkgdir/usr/share/firefoxpwa cp -r native/userchrome $pkgdir/usr/share/firefoxpwa/ |