[arch-commits] Commit in (4 files)

Maxim Baz maximbaz at archlinux.org
Sat Apr 13 09:35:13 UTC 2019


    Date: Saturday, April 13, 2019 @ 09:35:12
  Author: maximbaz
Revision: 451414

browserpass-firefox: new pkg

Added:
  browserpass-firefox/
  browserpass-firefox/repos/
  browserpass-firefox/trunk/
  browserpass-firefox/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: browserpass-firefox/trunk/PKGBUILD
===================================================================
--- browserpass-firefox/trunk/PKGBUILD	                        (rev 0)
+++ browserpass-firefox/trunk/PKGBUILD	2019-04-13 09:35:12 UTC (rev 451414)
@@ -0,0 +1,39 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+_id=browserpass at maximbaz.com
+_name=browserpass-extension
+pkgname=browserpass-firefox
+pkgver=3.0.8
+pkgrel=1
+pkgdesc="Firefox 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}.zip::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.zip"
+        "${pkgname}-${pkgver}.zip.asc::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.zip.asc"
+        "https://raw.githubusercontent.com/browserpass/browserpass-extension/master/LICENSE")
+noextract=("${pkgname}-${pkgver}.zip")
+sha256sums=('8d94cf8b47edbc5651dd935d0b2025afcd21e8b3d33b6bf8f68f748ccc8bf8e1'
+            'SKIP'
+            'ea8738ea89deaa31df9477e4f6cba90cb40d01e3e1e39b36afdcab763cf54dee')
+validpgpkeys=('EB4F9E5A60D32232BB52150C12C87A28FEAC6B20')
+
+prepare() {
+    mkdir -p "${pkgname}-${pkgver}"
+    bsdtar -vxf "${pkgname}-${pkgver}.zip" -C "${pkgname}-${pkgver}"
+}
+
+package() {
+    _dest="${pkgdir}/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/${_id}"
+    install -dm755 "${_dest}"
+    cp -a "${pkgname}-${pkgver}"/* "${_dest}"
+
+    # Install host json from browserpass package
+    install -dm755 "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/"
+    ln -sf "/usr/lib/browserpass/hosts/firefox/com.github.browserpass.native.json" "${pkgdir}/usr/lib/mozilla/native-messaging-hosts/"
+
+    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
+}
+
+# vim:set ts=4 sw=4 et:


More information about the arch-commits mailing list