Date: Saturday, April 13, 2019 @ 09:33:29 Author: maximbaz Revision: 451413
archrelease: copy trunk to community-any Added: browserpass-chromium/repos/community-any/ browserpass-chromium/repos/community-any/PKGBUILD (from rev 451412, browserpass-chromium/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: browserpass-chromium/repos/community-any/PKGBUILD (from rev 451412, browserpass-chromium/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2019-04-13 09:33:29 UTC (rev 451413) @@ -0,0 +1,43 @@ +# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> + +_id=pjmbgaakjkbhpopmakjoedenlfdmcdgm +_name=browserpass-extension +pkgname=browserpass-chromium +pkgver=3.0.8 +pkgrel=1 +pkgdesc="Chromium extension for Browserpass, browser extension for zx2c4's pass (password manager)" +arch=('any') +url="https://github.com/browserpass/${_name}" +license=('ISC') +depends=('browserpass') +source=("${pkgname}-${pkgver}.crx::${url}/releases/download/${pkgver}/browserpass-github-${pkgver}.crx" + "${pkgname}-${pkgver}.crx.asc::${url}/releases/download/${pkgver}/browserpass-github-${pkgver}.crx.asc" + "https://raw.githubusercontent.com/browserpass/browserpass-extension/master/LICENSE") +noextract=("${pkgname}-${pkgver}.crx") +sha256sums=('aea610f9e815d16b7b529f8f2bb8ea6749a32e1f7256e5cbed48a36bf5fc0227' + 'SKIP' + 'ea8738ea89deaa31df9477e4f6cba90cb40d01e3e1e39b36afdcab763cf54dee') +validpgpkeys=('EB4F9E5A60D32232BB52150C12C87A28FEAC6B20') + +prepare() { + # Create extension json + cat << EOF > "${_id}".json +{ + "external_crx": "/usr/lib/${pkgname}/${pkgname}-${pkgver}.crx", + "external_version": "${pkgver}" +} +EOF +} + +package() { + install -Dm644 -t "${pkgdir}/usr/share/chromium/extensions/" "${_id}.json" + install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/" "${pkgname}-${pkgver}.crx" + + # Install host json from browserpass package + install -dm755 "${pkgdir}/etc/chromium/native-messaging-hosts/" + ln -sf "/usr/lib/browserpass/hosts/chromium/com.github.browserpass.native.json" "${pkgdir}/etc/chromium/native-messaging-hosts/" + + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE +} + +# vim:set ts=4 sw=4 et: