summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c65d4c58654c5b3c4424c41b0388a7dee85c669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Maintainer: fenze <fenze@contact.dev>
pkgname=bitwarden-cli-bin
pkgver=$(curl "https://api.github.com/repos/bitwarden/clients/releases" | grep '"tag_name"' | cut -d : -f 2 | grep -Eo '".+"' | grep -Eo '[^"]+' | grep '^cli' | sed 's/cli-v//' | head -n 1)
pkgrel=1
pkgdesc='Bitwarden Command-line Interface'
arch=('x86_64')
url='https://github.com/bitwarden/clients'
license=('GPL3')
makedepends=('unzip')
conflicts=('bitwarden-cli')
options=('!strip')
source=("https://github.com/bitwarden/clients/releases/download/cli-v${pkgver}/bw-linux-${pkgver}.zip")
md5sums=('SKIP')

package() {
  install -Dm755 bw "${pkgdir}/usr/bin/bw"
}