Files
guru/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.3.0.ebuild
Rahil Bhimjiani f42badb8c2 www-apps/vaultwarden-web-bin: add 2024.3.0
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
2024-03-27 01:18:39 +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 *
}