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