summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9dcc9ab2ac5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Amy <amy at fluff dot tech>
+
+_distnum=2214
+_distname="dist-chrome-${_distnum}.zip"
+
+pkgname=bitwarden-chromium
+pkgver=1.41.0
+pkgrel=1
+pkgdesc='Bitwarden Chromium extension'
+arch=('any')
+url='https://github.com/bitwarden/browser'
+license=('GPL3')
+makedepends=('git' 'unzip')
+optdepends=('chromium' 'google-chrome')
+install="${pkgname}.install"
+source=("https://github.com/bitwarden/browser/releases/download/v${pkgver}/${_distname}")
+noextract=("${_distname}")
+sha512sums=('a341d75ed649b594a4d097acedd358318ccde1f12d3ad06e8ebe0f8e6c32b69148d760fb779ad8b60323e382859041eff608819fe79a4540a8cf0a206a3f48c4')
+
+package() {
+ # Extract files - bsdtar doesn't seem to handle it well
+ cd "${srcdir}"
+ unzip "${_distname}"
+ rm "${_distname}"
+ # Fix broken permissions
+ chmod 755 $(find "${srcdir}" -type d)
+ chmod 644 $(find "${srcdir}" -type f)
+ # Copy files over to install dir
+ mkdir -p "${pkgdir}/usr/share/${pkgname}"
+ cp -dr --no-preserve=ownership "${srcdir}"/* "${pkgdir}/usr/share/${pkgname}/"
+}