void-packages/srcpkgs/qutebrowser/template
2017-02-28 17:51:12 +01:00

33 lines
1.1 KiB
Bash

# Template file for 'qutebrowser'
pkgname=qutebrowser
version=0.10.0
revision=1
noarch=yes
build_style=python3-module
pycompile_module="${pkgname}"
hostmakedepends="python3-setuptools asciidoc"
depends="python3-setuptools python3-PyQt5-webkit python3-PyQt5-quick
python3-Jinja2 python3-Pygments python3-pyPEG2 python3-yaml"
short_desc="Keyboard-focused browser with a minimal GUI"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="GPL-3"
homepage="https://qutebrowser.org/"
distfiles="https://github.com/The-Compiler/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
checksum=b5f3516b8f886a972e5028858a9508a6d1adaf89190b38de27f6177998592b70
pre_build() {
a2x -f manpage doc/${pkgname}.1.asciidoc
}
post_install() {
vman doc/${pkgname}.1
vinstall ${pkgname}.desktop 644 usr/share/applications
local dim
for dim in 16 24 32 48 64 96 128 256 512; do
vinstall icons/${pkgname}-${dim}x${dim}.png 644 \
usr/share/icons/hicolor/${dim}x${dim}/apps ${pkgname}.png
done
vinstall icons/${pkgname}.svg 644 \
usr/share/icons/hicolor/scalable/apps ${pkgname}.png
}