32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'browserpass'
|
|
pkgname=browserpass
|
|
version=3.0.7
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/browserpass/browserpass-native
|
|
short_desc="Browser extension for pass"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="MIT"
|
|
homepage="https://github.com/browserpass/browserpass-native"
|
|
distfiles="https://github.com/browserpass/browserpass-native/archive/${version}.tar.gz"
|
|
checksum=2ef6a471bd7ea35735bb196c5ddb12f9345fd27ba4b36065717b3c3f77860003
|
|
|
|
post_build() {
|
|
vsed -i "s:%%replace%%:/usr/bin/browserpass-native:" \
|
|
browser-files/chromium-host.json browser-files/firefox-host.json
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
local targetname=com.github.browserpass.native.json
|
|
|
|
vinstall browser-files/firefox-host.json 644 usr/lib/mozilla/native-messaging-hosts $targetname
|
|
|
|
vinstall browser-files/chromium-host.json 644 etc/chromium/native-messaging-hosts $targetname
|
|
vinstall browser-files/chromium-policy.json 644 etc/chromium/policies/managed $targetname
|
|
|
|
vinstall browser-files/chromium-host.json 644 etc/opt/chrome/native-messaging-hosts $targetname
|
|
vinstall browser-files/chromium-policy.json 644 etc/opt/chrome/policies/managed $targetname
|
|
}
|