summaryrefslogtreecommitdiff
path: root/libre/epiphany/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 07:13:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-05 07:13:12 -0300
commit9072f82eb6055f81082b784666b66da380480949 (patch)
tree2660ee06b786e0e8604ca4a544ba9d2bfc74df95 /libre/epiphany/PKGBUILD
parentc55e1348b6f415284260836795c462fe81ea3809 (diff)
epiphany: remove libre suffix and add complex pkgrel
Diffstat (limited to 'libre/epiphany/PKGBUILD')
-rw-r--r--libre/epiphany/PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/libre/epiphany/PKGBUILD b/libre/epiphany/PKGBUILD
new file mode 100644
index 000000000..f21e94e0a
--- /dev/null
+++ b/libre/epiphany/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 219317 2014-08-05 09:33:27Z jgc $
+# Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgname=epiphany
+pkgver=3.12.1
+pkgrel=2.parabola1
+install=epiphany.install
+pkgdesc="A GNOME web browser based on the WebKit rendering engine, with DuckDuckGo HTML support"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+depends=('libsoup' 'libnotify' 'gsettings-desktop-schemas' 'webkitgtk' 'nss' 'iso-codes' 'dconf' 'desktop-file-utils' 'gnome-icon-theme-symbolic' 'gcr' 'gnome-desktop' 'libwnck3' 'gnome-themes-standard')
+makedepends=('intltool' 'itstool' 'docbook-xml' 'startup-notification' 'gobject-introspection')
+replaces=(${pkgname}-libre)
+conflicts=(${pkgname}-libre)
+options=('!emptydirs')
+groups=('gnome')
+url="https://wiki.gnome.org/Apps/Web"
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz
+ git-fixes.patch)
+sha256sums=('16d9f8f10443328b2f226c2da545e75c8433f50f103af8aeb692b098d5fbbf93'
+ '22b026b30e4792b3244f3fecf12bd48f928efc34097bf501d87611f77c0750bf')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Patch up to f43f9af7b195de53011b2e22c91041674dc00e2e
+ patch -Np1 -i ../git-fixes.patch
+
+ # Replace DuckDuckGo to DuckDuckGo HTML
+ sed -i 's|duckduckgo[.]com|duckduckgo.com/html|g' $(grep -rlI 'duckduckgo[.]com')
+
+ # Replace Google support to DuckDuckGo HTML
+ sed -i 's|http://www[.]google[.]com/search?q=%s[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=search|g' $(grep -rlI 'http://www[.]google[.]com/search?q=%s&ie=UTF-8&oe=UTF-8')
+ sed -i '\|a quoted string should be searched|d' $(grep -rlI 'a quoted string should be searched')
+ sed -i 's|http://www[.]google[.]com/search?q=%s[&]amp;ie=UTF-8[&]amp;oe=UTF-8|https://duckduckgo.com/html/?q=%s|g' $(grep -rlI 'http://www[.]google[.]com/search')
+ sed -i 's|http://www[.]google[.]com|https://duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+ sed -i 's|http://google[.]com|https://duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+ sed -i 's|mail[.]google[.]com|mail.com|g' $(grep -rlI 'mail[.]google[.]com')
+ sed -i 's|google[.]com|duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --libexecdir=/usr/lib/$pkgname
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}