From 39201ef8c70dcf7280fe41cbdbd5b551db914097 Mon Sep 17 00:00:00 2001 From: polyzen Date: Sun, 22 Feb 2015 22:44:17 -0500 Subject: [PATCH] firefox-extensions: "The customer is always right" From https://aur.archlinux.org/packages/firefox-extension-ublock/: Comment by m42a 2015-02-16 19:44 I had the same problem as hbdee, and their fix worked for me as well. Comment by poly 2015-02-12 01:29 Weird, it works fine here... I've installed all my addons this way, and they seem to work Comment by hbdee 2015-02-11 12:38 Sure. The permissions for files in your build are -rw-r--r--, so I still see adverts, cannot access certain parts of the extensions options, and there is no icon for the toolbar. I'm sure there's other problems as well, but I couldn't be bothered to investigate as everything is readable but not executable, which is the crux of the problem. When permissions are -rwxr-xr-x everything works as expected. Comment by poly 2015-02-10 19:23 hbdee, could you elaborate on the problem? Comment by hbdee 2015-02-10 14:17 @poly There's a permissions problem. Could you add the following lines to the PKGBUILD to fix it? Thanks. cp -dpr --no-preserve=ownership * $dstdir chmod -R 755 $dstdir --- .SRCINFO | 2 +- PKGBUILD | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 770138165121..f84e15473676 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = firefox-extension-stylish pkgdesc = Restyle the web with Stylish, a user styles manager. pkgver = 2.0.1 - pkgrel = 2 + pkgrel = 3 url = https://userstyles.org arch = any license = GPL3 diff --git a/PKGBUILD b/PKGBUILD index 618933a995a6..d98709c3cfa6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=firefox-extension-stylish pkgver=2.0.1 -pkgrel=2 +pkgrel=3 pkgdesc='Restyle the web with Stylish, a user styles manager.' url=https://userstyles.org arch=('any') @@ -16,7 +16,8 @@ package() { local dstdir="$pkgdir"/usr/lib/firefox/browser/extensions/"{46551EC9-40F0-4e47-8E18-8E5CF550CFB8}" install -d "$dstdir" - cp -r * "$dstdir" + cp -dpr --no-preserve=ownership * "$dstdir" + chmod -R 755 "$dstdir" } # vim:set ts=2 sw=2 et: