aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qutebrowser/APKBUILD
blob: 3a0c2af398b03ed6c7ad07a5c6eb20fec8cad268 (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=qutebrowser
pkgver=1.4.1
pkgrel=0
pkgdesc="A keyboard-driven, vim-like browser based on PyQT5"
url="https://qutebrowser.org/"
arch="noarch"
license="GPL-3.0-only"
depends="
	py3-attrs py3-jinja2 py3-pygments py3-pypeg2 py3-qt5 py3-yaml qt5-qtbase
	qt5-qtwebengine qt5-qtbase-sqlite
"
makedepends="asciidoc py3-pytest py3-hypothesis py3-setuptools"
source="
	https://github.com/qutebrowser/qutebrowser/releases/download/v$pkgver/qutebrowser-$pkgver.tar.gz
"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"

build() {
	cd "$builddir"
	a2x -f manpage doc/qutebrowser.1.asciidoc
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir/" --optimize=1
	install -Dm644 misc/qutebrowser.desktop \
		"$pkgdir"/usr/share/applications/qutebrowser.desktop
	for i in 16 24 32 48 64 128 256 512; do
		install -Dm644 "icons/qutebrowser-${i}x$i.png" \
			"$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/qutebrowser.png"
	done
	install -Dm644 icons/qutebrowser.svg \
		"$pkgdir/usr/share/icons/hicolor/scalable/apps/qutebrowser.svg"
	mkdir -p "$pkgdir/usr/share/qutebrowser/userscripts"
	install -Dm755 -t "$pkgdir/usr/share/qutebrowser/userscripts/" misc/userscripts/*
}

sha512sums="a77b786980326f67ffb933d019438933de3a6f43244bfc0f42f22a8f189480b093757b2d5d81de58ab774f39ee4442c2482be4f78ffcad7b73f03d028e2b455d  qutebrowser-1.4.1.tar.gz"