-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A firefox-extension AUR package. #105
Comments
Also side note for the existing native messaging host package: the manifest should probably be placed by the package in |
Hi, Yes, that would be very nice. I might have a look in the future if I find the time, but feel free to contribute your own PKGBUILD to the AUR if you want to 👍🏼
Good point. I think the path to the messenger host is inserted dynamically into the manifest when you run |
Yep, this is how I'd do it, though: diff --git a/PKGBUILD b/PKGBUILD
index da8c2de..ddae0dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,6 +18,12 @@ makedepends=(
source=("$pkgname-$pkgver.tar.gz::https://pypi.python.org/packages/source/p/$_name/$_name-$pkgver.tar.gz")
sha256sums=('59e73d7e27389574fb801634e03d8471f09bfe062865cad803f68c456680ed66')
+prepare() {
+ cd $_name-$pkgver
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ sed -i "s:<path>:$site_packages/pywalfox/bin/main.sh:" pywalfox/assets/manifest.json
+}
+
build() {
cd $_name-$pkgver
python setup.py build
@@ -26,4 +32,5 @@ build() {
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 pywalfox/assets/manifest.json -T "$pkgdir/usr/lib/mozilla/native-messaging-hosts/pywalfox.json"
} ( |
Thanks! Have you tested it locally to see if it works as expected? |
Yes |
As you can see in https://wiki.archlinux.org/title/Browser_extensions browser extensions themselves can also be packaged, it'd be nice to have the extension side of pywalfox in the AUR as well :)
The text was updated successfully, but these errors were encountered: