summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmy2019-08-15 01:00:55 -0400
committerAmy2019-08-15 01:00:55 -0400
commit18fc66b39504ba65ea37428d741e9136c90f4385 (patch)
tree3c5de99ebce3ffe003deb2aaae00263d060c65a3
downloadaur-18fc66b39504ba65ea37428d741e9136c90f4385.tar.gz
initial commit - v1.41.0
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore10
-rw-r--r--PKGBUILD31
-rw-r--r--bitwarden-chromium.install13
4 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..38f40b12283
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = bitwarden-chromium
+ pkgdesc = Bitwarden Chromium extension
+ pkgver = 1.41.0
+ pkgrel = 1
+ url = https://github.com/bitwarden/browser
+ install = bitwarden-chromium.install
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = unzip
+ optdepends = chromium
+ optdepends = google-chrome
+ noextract = dist-chrome-2214.zip
+ source = https://github.com/bitwarden/browser/releases/download/v1.41.0/dist-chrome-2214.zip
+ sha512sums = a341d75ed649b594a4d097acedd358318ccde1f12d3ad06e8ebe0f8e6c32b69148d760fb779ad8b60323e382859041eff608819fe79a4540a8cf0a206a3f48c4
+
+pkgname = bitwarden-chromium
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b31f419dde0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+# build and package directories
+src/
+pkg/
+
+# source and package archives
+dist-chrome-*.zip
+bitwarden-chromium-*-any.pkg.tar.xz
+
+# lazy script to update package sums and .SRCINFO
+update.sh
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}/"
+}
diff --git a/bitwarden-chromium.install b/bitwarden-chromium.install
new file mode 100644
index 00000000000..f90696b36c3
--- /dev/null
+++ b/bitwarden-chromium.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "---------------------------------------------------------------"
+ echo "Installed unpacked extension in /usr/share/bitwarden-chromium/"
+ echo "To add the extension:"
+ echo " - Go to chrome://extensions/"
+ echo " - Enable developer mode"
+ echo " - Load unpacked extension from /usr/share/bitwarden-chromium/"
+ echo "---------------------------------------------------------------"
+}
+
+post_upgrade() {
+ post_install
+}