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