[arch-commits] Commit in passff-host/repos (community-any community-any/PKGBUILD)

Daurnimator daurnimator at archlinux.org
Thu Jul 9 11:22:40 UTC 2020


    Date: Thursday, July 9, 2020 @ 11:22:40
  Author: daurnimator
Revision: 661809

archrelease: copy trunk to community-any

Added:
  passff-host/repos/community-any/
  passff-host/repos/community-any/PKGBUILD
    (from rev 661808, passff-host/trunk/PKGBUILD)

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

Copied: passff-host/repos/community-any/PKGBUILD (from rev 661808, passff-host/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-07-09 11:22:40 UTC (rev 661809)
@@ -0,0 +1,39 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Jaron Kent-Dobias <jaron at kent-dobias.com>
+# Contributor: arcnmx <arcnmx at gmail.com>
+
+pkgname=passff-host
+pkgver=1.2.1
+pkgrel=2
+epoch=1
+pkgdesc="PassFF native messaging host application for Firefox, Chromium, Chrome, Vivaldi"
+url="https://github.com/passff/passff-host"
+license=(GPL2)
+depends=('python')
+arch=('any')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/passff/passff-host/archive/${pkgver}.tar.gz")
+sha256sums=('9ad2fd45764283fd327819f79acc1ed39ad14e939120d4bcda6c0510cae39252')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  sed -i -e 's/PLACEHOLDER/\/usr\/share\/passff\/passff.py/' 'src/passff.json'
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  install -Dm 755 "src/passff.py" "${pkgdir}/usr/share/passff/passff.py"
+  python -O -m compileall "${pkgdir}/usr/share/passff/passff.py"
+
+  install -Dm 644 "src/passff.json" "${pkgdir}/usr/share/passff/passff.json"
+  for d in \
+    '/etc/chromium/native-messaging-hosts' \
+    '/etc/opt/chrome/native-messaging-hosts' \
+    '/usr/lib/mozilla/native-messaging-hosts' \
+    '/etc/vivaldi/native-messaging-hosts' \
+  ; do
+    mkdir -p "${pkgdir}/${d}/"
+    ln -s '/usr/share/passff/passff.json' "${pkgdir}/${d}/passff.json"
+  done
+}



More information about the arch-commits mailing list