summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/qupzilla-libre/PKGBUILD51
-rw-r--r--libre/qupzilla-libre/libre.patch76
-rw-r--r--libre/qupzilla-libre/qupzilla.install12
3 files changed, 139 insertions, 0 deletions
diff --git a/libre/qupzilla-libre/PKGBUILD b/libre/qupzilla-libre/PKGBUILD
new file mode 100644
index 000000000..e46a7d347
--- /dev/null
+++ b/libre/qupzilla-libre/PKGBUILD
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 90358 2013-05-11 23:22:13Z speps $
+# Maintainer: speps <speps at aur dot archlinux dot org>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_name=QupZilla
+_pkgname=qupzilla
+pkgname=qupzilla-libre
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="Cross-platform QtWebKit browser, without Google, Youtube and Facebook recommendation"
+arch=(i686 x86_64 mips64el)
+url="http://www.qupzilla.com/"
+license=('GPL3')
+depends=('qtwebkit' 'hunspell')
+optdepends=('bash-completion: bash completion support')
+install="$_pkgname.install"
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/$_name/$_pkgname/tarball/v$pkgver"
+ 'libre.patch')
+md5sums=('20187fcce11dbba876e1ee7dc5e32583'
+ 'baca20fcc0b45c118d7afc38bfc32a55')
+
+prepare() {
+ cd "$srcdir/$_name-$_pkgname-"*
+
+ # remove Google, Youtube and Facebook recommendation
+ patch -Np1 -i $srcdir/libre.patch
+}
+
+build() {
+ cd "$srcdir/$_name-$_pkgname-"*
+
+ # enable webgl support
+ export USE_WEBGL=true
+
+ qmake-qt4 QUPZILLA_PREFIX=/usr/
+ make
+}
+
+package() {
+ cd "$srcdir/$_name-$_pkgname-"*
+ make INSTALL_ROOT="$pkgdir/" install
+
+ # zsh completion
+ install -Dm644 linux/completion/zsh_completion.sh \
+ "$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre/qupzilla-libre/libre.patch b/libre/qupzilla-libre/libre.patch
new file mode 100644
index 000000000..7ce4d26d2
--- /dev/null
+++ b/libre/qupzilla-libre/libre.patch
@@ -0,0 +1,76 @@
+diff --git a/src/lib/opensearch/searchenginesmanager.cpp b/src/lib/opensearch/searchenginesmanager.cpp
+index 72ae7d4..cb42795 100644
+--- a/src/lib/opensearch/searchenginesmanager.cpp
++++ b/src/lib/opensearch/searchenginesmanager.cpp
+@@ -55,8 +55,8 @@ SearchEnginesManager::SearchEnginesManager()
+ {
+ Settings settings;
+ settings.beginGroup("SearchEngines");
+- m_startingEngineName = settings.value("activeEngine", "Google").toString();
+- m_defaultEngineName = settings.value("DefaultEngine", "Google").toString();
++ m_startingEngineName = settings.value("activeEngine", "DuckDuckGo HTML").toString();
++ m_defaultEngineName = settings.value("DefaultEngine", "DuckDuckGo HTML").toString();
+ settings.endGroup();
+
+ connect(this, SIGNAL(enginesChanged()), this, SLOT(scheduleSave()));
+@@ -126,13 +126,6 @@ QUrl SearchEnginesManager::searchUrl(const QString &string)
+
+ void SearchEnginesManager::restoreDefaults()
+ {
+- Engine google;
+- google.name = "Google";
+- google.icon = QIcon(":icons/sites/google.png");
+- google.url = "http://www.google.com/search?client=qupzilla&q=%s";
+- google.shortcut = "g";
+- google.suggestionsUrl = "http://suggestqueries.google.com/complete/search?output=firefox&q=%s";
+-
+ Engine wiki;
+ wiki.name = "Wikipedia (en)";
+ wiki.icon = QIcon(":/icons/sites/wikipedia.png");
+@@ -140,25 +133,16 @@ void SearchEnginesManager::restoreDefaults()
+ wiki.shortcut = "w";
+ wiki.suggestionsUrl = "http://en.wikipedia.org/w/api.php?action=opensearch&search=%s&namespace=0";
+
+- Engine yt;
+- yt.name = "YouTube";
+- yt.icon = QIcon(":/icons/sites/youtube.png");
+- yt.url = "http://www.youtube.com/results?search_query=%s&search=Search";
+- yt.shortcut = "yt";
+- yt.suggestionsUrl = "http://suggestqueries.google.com/complete/search?ds=yt&output=firefox&q=%s";
+-
+ Engine duck;
+- duck.name = "DuckDuckGo";
++ duck.name = "DuckDuckGo HTML";
+ duck.icon = QIcon(":/icons/sites/duck.png");
+- duck.url = "https://duckduckgo.com/?q=%s&t=qupzilla";
++ duck.url = "https://duckduckgo.com/html/?q=%s&t=qupzilla";
+ duck.shortcut = "d";
+
+- addEngine(google);
+ addEngine(wiki);
+- addEngine(yt);
+ addEngine(duck);
+
+- m_defaultEngine = google;
++ m_defaultEngine = duck;
+
+ emit enginesChanged();
+ }
+diff --git a/src/lib/plugins/speeddial.cpp b/src/lib/plugins/speeddial.cpp
+index 2039921..52afa22 100644
+--- a/src/lib/plugins/speeddial.cpp
++++ b/src/lib/plugins/speeddial.cpp
+@@ -54,11 +54,10 @@ void SpeedDial::loadSettings()
+ settings.endGroup();
+
+ if (allPages.isEmpty()) {
+- allPages = "url:\"http://www.google.com\"|title:\"Google\";"
++ allPages = "url:\"https://duckduckgo.com/html\"|title:\"DuckDuckGo HTML\";"
+ "url:\"http://www.qupzilla.com\"|title:\"QupZilla\";"
+ "url:\"http://blog.qupzilla.com\"|title:\"QupZilla Blog\";"
+- "url:\"https://github.com/QupZilla/qupzilla\"|title:\"QupZilla GitHub\";"
+- "url:\"https://facebook.com\"|title:\"Facebook\";";
++ "url:\"https://github.com/QupZilla/qupzilla\"|title:\"QupZilla GitHub\";";
+ }
+ changed(allPages);
+
diff --git a/libre/qupzilla-libre/qupzilla.install b/libre/qupzilla-libre/qupzilla.install
new file mode 100644
index 000000000..029294d67
--- /dev/null
+++ b/libre/qupzilla-libre/qupzilla.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}