parent
04a74c6640
commit
2dabd538bc
1 changed files with 32 additions and 0 deletions
32
srcpkgs/browserpass/template
Normal file
32
srcpkgs/browserpass/template
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Template file for 'browserpass'
|
||||
pkgname=browserpass
|
||||
version=2.0.4
|
||||
revision=1
|
||||
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/dannyvankooten/browserpass"
|
||||
distfiles="https://github.com/dannyvankooten/browserpass/archive/${version}.tar.gz"
|
||||
checksum=237978043940edb30072627b6f32f65383f915e12067a7303ff27c1f7bfed8d4
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue