diff options
author | root <root@rshg054.dnsready.net> | 2013-07-12 01:25:16 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-12 01:25:16 -0700 |
commit | 2579dc888d0308c442245d932f99cc4c61c39299 (patch) | |
tree | 5918cd8d62c952274814cf483fc59ed0d0751d1b /libre/epiphany-libre | |
parent | 2e85ee969c4be5762301fc1447315f132aca1fc8 (diff) |
Fri Jul 12 01:25:08 PDT 2013
Diffstat (limited to 'libre/epiphany-libre')
-rw-r--r-- | libre/epiphany-libre/PKGBUILD | 56 | ||||
-rw-r--r-- | libre/epiphany-libre/epiphany.install | 13 |
2 files changed, 69 insertions, 0 deletions
diff --git a/libre/epiphany-libre/PKGBUILD b/libre/epiphany-libre/PKGBUILD new file mode 100644 index 000000000..d6a1c77b2 --- /dev/null +++ b/libre/epiphany-libre/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 186904 2013-05-31 18:08:27Z heftig $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Maintainer (Parabola): André Silva <emulatorman@lavabit.com> +# Contributor (Parabola): Márcio Silva <coadde@lavabit.com> + +_pkgname=epiphany +pkgname=epiphany-libre +pkgver=3.8.2 +pkgrel=1 +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' 'webkitgtk3' 'nss' 'iso-codes' 'dconf' 'desktop-file-utils' + 'hicolor-icon-theme' 'gcr' 'gnome-desktop' 'libwnck3') +makedepends=('intltool' 'gnome-doc-utils' 'startup-notification' 'gobject-introspection') +replaces=$_pkgname +conflicts=$_pkgname +provides=$_pkgname=$pkgver +options=('!libtool' '!emptydirs') +groups=('gnome') +url="http://www.gnome.org/projects/epiphany/" +source=(http://ftp.gnome.org/pub/GNOME/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz) +sha256sums=('ae89d6902ed243304d2cbf2fa361f6dd0cb3401fdaf726e6fdd4acc09197d50a') + +prepare() { + cd $_pkgname-$pkgver + + # Replace Google support to DuckDuckGo HTML + sed -i 's|http://www[.]google[.]com/search?q=search[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=search|g' $(grep -rlI 'http://www[.]google[.]com/search?q=search&ie=UTF-8&oe=UTF-8') + sed -i 's|http://www[.]google[.]com/search?q=lala%2Elala[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=lala.lala|g' $(grep -rlI 'http://www[.]google[.]com/search?q=lala%2Elala&ie=UTF-8&oe=UTF-8') + sed -i 's|http://www[.]google[.]com/search?q=totalgarbage0xdeadbeef[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=totalgarbage0xdeadbeef|g' $(grep -rlI 'http://www[.]google[.]com/search?q=totalgarbage0xdeadbeef&ie=UTF-8&oe=UTF-8') + sed -i 's|http://www[.]google[.]com/search?q=search+separated+words+please[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=search+separated+words+please|g' $(grep -rlI 'http://www[.]google[.]com/search?q=search+separated+words+please&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 + + # 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 +} diff --git a/libre/epiphany-libre/epiphany.install b/libre/epiphany-libre/epiphany.install new file mode 100644 index 000000000..8b17fa3d4 --- /dev/null +++ b/libre/epiphany-libre/epiphany.install @@ -0,0 +1,13 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas + update-desktop-database -q + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |