guru/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
Rahil Bhimjiani 45ed00a6a0
www-apps/vaultwarden-web-bin: precompiled Web UI for Vaultwarden
initial release 2024.1.2b

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
2024-02-26 11:17:12 +05:30

30 lines
688 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Prebuilt Vaultwarden web from upstream"
HOMEPAGE="https://github.com/dani-garcia/bw_web_builds"
SRC_URI="
https://github.com/dani-garcia/bw_web_builds/releases/download/v${PV}/bw_web_v${PV}.tar.gz -> ${P}.tar.gz
"
S="${WORKDIR}/web-vault"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="!www-apps/vaultwarden-web"
src_prepare() {
default
# although following is optional in upstream's build process, it reduced build dir size from 44M to 25M
find -name "*.map" -delete || die
}
src_install() {
insinto /usr/share/webapps/"${PN%-bin}"
doins -r *
}