# Maintainer: Amy _distnum=2408 _distname="dist-chrome-${_distnum}.zip" pkgname=bitwarden-chromium pkgver=1.42.2 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=('222d2335992496c354b4e1d74ec6164df4a12a14f02fc44f55bb754138fb85621436f62987618f8e5bc1cc56b59c95eb368ccec2d65b6ba4f535530a982a802f') 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}/" }