summaryrefslogtreecommitdiff
path: root/libre/epiphany
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-08-13 21:40:12 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-08-13 21:40:12 -0500
commit1383bf7c0ad6ff186e489018b5468a7071faf626 (patch)
tree9559e4bc7a07724f0193c46de487090a1dd750c7 /libre/epiphany
parentfe73c6726d92855b276f3dd78f7c64608091494a (diff)
epiphany-3.20.3-2.parabola1: Create a plugin dir that only Epiphany will find
Diffstat (limited to 'libre/epiphany')
-rw-r--r--libre/epiphany/PKGBUILD10
-rw-r--r--libre/epiphany/pluginsdir.diff28
2 files changed, 35 insertions, 3 deletions
diff --git a/libre/epiphany/PKGBUILD b/libre/epiphany/PKGBUILD
index a59abcb35..fd3c53b22 100644
--- a/libre/epiphany/PKGBUILD
+++ b/libre/epiphany/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=epiphany
pkgver=3.20.3
-pkgrel=1.parabola1
+pkgrel=2.parabola1
pkgdesc="A GNOME web browser based on the WebKit rendering engine, with DuckDuckGo HTML support"
url="https://wiki.gnome.org/Apps/Web"
arch=(i686 x86_64 armv7h)
@@ -18,11 +18,15 @@ options=(!emptydirs)
groups=(gnome)
replaces=(${pkgname}-libre)
conflicts=(${pkgname}-libre)
-source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('4d9de1bdb44c14adf25aa6dc02ea3de60925cff5eb01fe89545e6032c9b424a2')
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz
+ pluginsdir.diff)
+sha256sums=('4d9de1bdb44c14adf25aa6dc02ea3de60925cff5eb01fe89545e6032c9b424a2'
+ '42a7b820fd659fee8508a9b9a57e385c658b3b312c7a8f9456078223e4d78f22')
prepare() {
cd $pkgname-$pkgver
+ patch -Np1 -i ../pluginsdir.diff
+ autoreconf -fvi
# Replace DuckDuckGo to DuckDuckGo HTML
sed -i 's|duckduckgo[.]com|duckduckgo.com/html|g' $(grep -rlI 'duckduckgo[.]com')
diff --git a/libre/epiphany/pluginsdir.diff b/libre/epiphany/pluginsdir.diff
new file mode 100644
index 000000000..f91ee4527
--- /dev/null
+++ b/libre/epiphany/pluginsdir.diff
@@ -0,0 +1,28 @@
+ embed/Makefile.am | 1 +
+ embed/ephy-embed-shell.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git c/embed/Makefile.am i/embed/Makefile.am
+index 8969e1b59e252c19..7c3225b02c2ec5fb 100644
+--- c/embed/Makefile.am
++++ i/embed/Makefile.am
+@@ -65,6 +65,7 @@ libephyembed_la_CPPFLAGS = \
+ libephyembed_la_CFLAGS = \
+ -DDATADIR="\"$(datadir)\"" \
+ -DSHARE_DIR=\"$(pkgdatadir)\" \
++ -DEPHY_PLUGINS_DIR=\""$(libdir)/epiphany/plugins"\" \
+ -DEPHY_WEB_EXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_MAJOR)/web-extensions"\" \
+ $(DEPENDENCIES_CFLAGS) \
+ $(CODE_COVERAGE_CFLAGS) \
+diff --git c/embed/ephy-embed-shell.c i/embed/ephy-embed-shell.c
+index cd74f7d144b37ed3..624020f3c39383c6 100644
+--- c/embed/ephy-embed-shell.c
++++ i/embed/ephy-embed-shell.c
+@@ -671,6 +671,7 @@ ephy_embed_shell_create_web_context (EphyEmbedShell *shell)
+ g_free (cache_dir);
+
+ priv->web_context = webkit_web_context_new_with_website_data_manager (manager);
++ webkit_web_context_set_additional_plugins_directory (priv->web_context, EPHY_PLUGINS_DIR);
+ g_object_unref (manager);
+ }
+