void-packages/srcpkgs/vaultwarden/template

27 lines
876 B
Bash

# Template file for 'vaultwarden'
pkgname=vaultwarden
version=1.26.0
revision=1
archs="x86_64* i686* aarch64* arm*" # ring
build_style=cargo
configure_args="--features sqlite,mysql,postgresql"
hostmakedepends="pkg-config"
makedepends="openssl-devel libmysqlclient-devel postgresql-libs-devel
sqlite-devel"
short_desc="Unofficial Bitwarden compatible server written in Rust"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="GPL-3.0-or-later"
homepage="https://github.com/dani-garcia/vaultwarden"
distfiles="https://github.com/dani-garcia/vaultwarden/archive/${version}.tar.gz"
checksum=0b9f241cf0e0ba0bf49e5e45aaec4350d7e816e98340d2756b76fa376775592d
system_accounts="_vaultwarden"
_vaultwarden_homedir="/var/lib/vaultwarden"
make_dirs="/var/lib/vaultwarden 0750 _vaultwarden _vaultwarden"
post_install() {
vsconf .env.template vaultwarden.conf
vsv vaultwarden
}