blob: 24d0be27379cf14e598cdd111c42f1bc13b287c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Amy <amy at fluff dot tech>
_distnum=2479
_distname="dist-chrome-${_distnum}.zip"
pkgname=bitwarden-chromium
pkgver=1.43.4
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=('3307b0bfa9c737708a53c9ba38700b52604b34c9ae2a19c36c34344c2c1f911672383674ff81e361f37eada0e4d02453b496469ca7b4cfc6357a0c0c7c31e1f2')
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}/"
}
|