Package Details: librewolf-firefox-shim 137.0-1

Git Clone URL: https://aur.archlinux.org/librewolf-firefox-shim.git (read-only, click to copy)
Package Base: librewolf-firefox-shim
Description: A symlink for using librewolf as a firefox
Upstream URL: https://librewolf-community.gitlab.io/
Keywords: librewolf
Licenses: MIT
Conflicts: firefox
Provides: firefox
Submitter: freed00m
Maintainer: freed00m
Last Packager: freed00m
Votes: 5
Popularity: 0.002694
First Submitted: 2021-04-06 20:27 (UTC)
Last Updated: 2025-04-07 09:49 (UTC)

Required by (172)

Sources (0)

Latest Comments

freed00m commented on 2025-04-07 09:53 (UTC) (edited on 2025-04-07 11:29 (UTC) by freed00m)

@pludikovsky ah, cool added :) but wouldn't awking $NF output the whole 1:$pkgver_1-1 ?

I am not at my Archbox at the moment, so I am not sure if 1:$pkgver_1-1 in the shim is preferable to $pkgver_1-1. How would pacman consider what pkg is providing the firefox the newest.

EDIT, oh NF = last field :) ok now I get it, it should work.

pludikovsky commented on 2025-04-07 07:48 (UTC)

Due to the way the versioning numbers of the librewolf-bin package work (1:$pkgver_1-1 instead of $pkgver_1-1) the pkgver() function returns the wrong result outside of CI.

This patch should fix this without breaking:

--- a/PKGBUILD  2025-04-07 09:45:07.371133453 +0200
+++ b/PKGBUILD  2025-04-07 09:45:19.026111926 +0200
@@ -19,7 +19,7 @@
     # Assuming build runner is without extra and has online access
     git ls-remote https://codeberg.org/librewolf/source | grep -oP '\d{3}\.\d+\.\d+' | sort -r | head -n 1
   else
-    pacman -Qi librewolf | grep -E '^Version[[:space:]]*:' | head -n 1 | awk -F ':' '{print $2}' | sed -E 's|-.*||' | tr -d '[[:space:]]'
+    pacman -Qi librewolf | grep -E '^Version[[:space:]]*:' | head -n 1 | awk -F ':' '{print $NF}' | sed -E 's|-.*||' | tr -d '[[:space:]]'
   fi
 }

creyon commented on 2023-10-30 15:52 (UTC)

I'm getting librewolf-firefox-shim: local (119.0-1) is newer than AUR (100.0.2-1) whenever I do a system upgrade. I tried uninstalling and reinstalling, but whenever I do so, it still installs 119. Is this a problem?

freed00m commented on 2022-06-22 20:02 (UTC) (edited on 2022-06-22 20:15 (UTC) by freed00m)

@Nonie689 and you have to consider not all people use AUR to isntall packages, so how the hook would decide?

Example I have my own repository which prebuilds this package periodically, having the hook to download pkgbuild and rebuild it would be nonsensical.

I know for your use case it make sense but what about the others? How would you solve it?

For now I am rejecting proposal for hooking firefox for version, your AUR helper should be responsible for calling pkgver() to see if update/rebuild needs to happen.

freed00m commented on 2022-06-22 06:30 (UTC)

@Nonie689 I think ALPM hook for rebuild trigger might be alright but touching $HOME is absolutely not.

Even though technically doable, the concept of update touching user's files, not.

Why would you want .mozilla symlinked anyway, what purpose? if you noticed, it's .mozilla/firefox to .librewolf, so where should .mozilla point to?

nonie689 commented on 2022-06-21 21:53 (UTC)

@freed00m

could you create a symlink to the .mozilla symlink? I think it needs to be in the install hook not in the PKGBUILD

cause you need to show in the

/etc/passwd with a gid or userid equal or greater than 1000

or with

userdbctl | grep regular | grep -wve "[↓|↑]" | awk '{print $6}'

hmm what do you think??

nonie689 commented on 2022-06-21 21:33 (UTC)

@dreieck @freed00m

I think it also needs a pacman hook or install hook.

If the firefox version are get an update.

freed00m commented on 2021-07-29 13:54 (UTC)

@dreieck - what package should I be querying? pacman -Qi firefox does return this package thus not bumping. So I will query librewolf as the version should be same.

But this will only set the version if one install the packgage, right? Should I add some pacman hooks for rebuilding this shim if librewolf installs new version?

dreieck commented on 2021-07-29 13:04 (UTC)

Can you automatically update the $pkgver to the installed librewolf version, please?

You can see as an example the pkgver()-function in firefox-developer-edition-firefox-symlink-latest.

Thanks for maintaining!