2017-10-09 21:34:30 +02:00
|
|
|
# Template file for 'browserpass'
|
|
|
|
pkgname=browserpass
|
2018-01-02 04:43:58 +01:00
|
|
|
version=2.0.10
|
2018-01-24 09:54:16 +01:00
|
|
|
revision=2
|
2017-10-09 21:34:30 +02:00
|
|
|
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"
|
2018-01-02 04:43:58 +01:00
|
|
|
checksum=b7c4b41a2bced21f9bcc42ddefd4c5baa9b0580f914a6df8d42f638ea70f1b3a
|
2017-10-09 21:34:30 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-10-10 00:51:20 +02:00
|
|
|
vinstall firefox/host.json 644 usr/lib/mozilla/native-messaging-hosts $targetname
|
2017-10-09 21:34:30 +02:00
|
|
|
|
2017-10-10 00:51:20 +02:00
|
|
|
vinstall chrome/host.json 644 etc/chromium/native-messaging-hosts $targetname
|
|
|
|
vinstall chrome/policy.json 644 etc/chromium/policies/managed $targetname
|
2017-10-09 21:34:30 +02:00
|
|
|
|
2017-10-10 00:51:20 +02:00
|
|
|
vinstall chrome/host.json 644 etc/opt/chrome/native-messaging-hosts $targetname
|
|
|
|
vinstall chrome/policy.json 644 etc/opt/chrome/policies/managed $targetname
|
2017-10-09 21:34:30 +02:00
|
|
|
}
|