void-packages/srcpkgs/browserpass/template
2018-12-15 16:05:28 -08:00

32 lines
1.1 KiB
Bash

# Template file for 'browserpass'
pkgname=browserpass
version=2.0.22
revision=2
build_style=go
go_import_path=github.com/dannyvankooten/browserpass
go_package="${go_import_path}/cmd/browserpass"
hostmakedepends="git"
short_desc="Browser extension for pass"
maintainer="John <johnz@posteo.net>"
license="MIT"
homepage="https://github.com/browserpass/browserpass"
distfiles="https://github.com/browserpass/browserpass/archive/${version}.tar.gz"
checksum=ce4d8f17b25982af67e5090a79d3cffeb6fddc36f579e87851a90b3e9515ae45
post_build() {
sed -i "s:%%replace%%:/usr/bin/browserpass:" chrome/host.json firefox/host.json
}
post_install() {
vlicense LICENSE
local targetname=com.dannyvankooten.browserpass.json
vinstall firefox/host.json 644 usr/lib/mozilla/native-messaging-hosts $targetname
vinstall chrome/host.json 644 etc/chromium/native-messaging-hosts $targetname
vinstall chrome/policy.json 644 etc/chromium/policies/managed $targetname
vinstall chrome/host.json 644 etc/opt/chrome/native-messaging-hosts $targetname
vinstall chrome/policy.json 644 etc/opt/chrome/policies/managed $targetname
}