summaryrefslogtreecommitdiff
path: root/libre/qutebrowser/PKGBUILD
blob: 4c43f32e9174cdc54d6d718a3cc97fcb8ca6b51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer (Arch): Morten Linderud <foxboron@archlinux.org>
# Contributor (Arch): Pierre Neidhardt <ambrevar@gmail.com>
# Contributor (Arch): Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: André Silva <emulatorman@hyperbola.info>

# parabola changes and rationale:
#  - removed qt5-webengine dependency
#  - set webkit backend as default

pkgname=qutebrowser
pkgver=1.7.0
pkgrel=1
pkgrel+=.par1
pkgdesc="A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit"
pkgdesc+=", without nonfree qt5-webengine recommendation"
arch=("any")
url="http://www.qutebrowser.org/"
license=("GPL")
depends=("python-attrs" "python-jinja" "python-pygments" "python-pypeg2"
	"python-pyqt5>=5.7" "python-yaml" "qt5-base>=5.7.1" "qt5-webkit")
makedepends=("asciidoc" "python-setuptools")
optdepends=("gst-libav: media playback"
	"gst-plugins-base: media playback"
	"gst-plugins-good: media playback"
	"gst-plugins-bad: media playback"
	"gst-plugins-ugly: media playback"
	"pdfjs: displaying PDF in-browser")
options=(!emptydirs)
source=("https://github.com/qutebrowser/qutebrowser/releases/download/v$pkgver/qutebrowser-$pkgver.tar.gz"
	"https://github.com/qutebrowser/qutebrowser/releases/download/v$pkgver/qutebrowser-$pkgver.tar.gz.asc"
	"webkit-warning.patch")
validpgpkeys=("E04E560002401B8EF0E76F0A916EB0C8FD55A072")
sha256sums=('f1f01b33669a9b08071997bb2642d46a1e5be9e293bdeb817d83db8dc5aad273'
	    'SKIP'
	    '8509032254715a09d807ac5901657e66d0d0780e47bbe2b06f634d7b7c9792d0')

prepare() {
	cd "$pkgname-$pkgver"

	patch -Np1 < $srcdir/webkit-warning.patch
}

build() {
	cd "$pkgname-$pkgver"

	# make sure webkit is the default backend
	sed -i 's/webengine/webkit/' qutebrowser/config/configdata.yml

	a2x -f manpage doc/qutebrowser.1.asciidoc
	python setup.py build
}

package() {
	cd "$pkgname-$pkgver"

	make -f misc/Makefile DESTDIR="$pkgdir" PREFIX=/usr install
}