summaryrefslogtreecommitdiff
path: root/libre/qupzilla-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/qupzilla-libre/PKGBUILD')
-rw-r--r--libre/qupzilla-libre/PKGBUILD51
1 files changed, 51 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: