Date: Saturday, April 13, 2019 @ 09:33:18 Author: maximbaz Revision: 451412
browserpass-chromium: new pkg Added: browserpass-chromium/ browserpass-chromium/repos/ browserpass-chromium/trunk/ browserpass-chromium/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Added: browserpass-chromium/trunk/PKGBUILD =================================================================== --- browserpass-chromium/trunk/PKGBUILD (rev 0) +++ browserpass-chromium/trunk/PKGBUILD 2019-04-13 09:33:18 UTC (rev 451412) @@ -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: