commit:     45ed00a6a0aff02fb7fd745017385efacbf172c2
Author:     Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Wed Feb 21 15:35:37 2024 +0000
Commit:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
CommitDate: Mon Feb 26 05:47:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=45ed00a6

www-apps/vaultwarden-web-bin: precompiled Web UI for Vaultwarden

initial release 2024.1.2b

Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>

 www-apps/vaultwarden-web-bin/Manifest              |  1 +
 www-apps/vaultwarden-web-bin/metadata.xml          | 13 ++++++++++
 .../vaultwarden-web-bin-2024.1.2b.ebuild           | 29 ++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/www-apps/vaultwarden-web-bin/Manifest 
b/www-apps/vaultwarden-web-bin/Manifest
new file mode 100644
index 0000000000..41fc04069d
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/Manifest
@@ -0,0 +1 @@
+DIST vaultwarden-web-bin-2024.1.2b.tar.gz 11259948 BLAKE2B 
6d899b53972df56ca76c63f84375a95629c8da43026b16f0ffd09b70ab46b8db530163976f6854325cd70513d0be31c394256153b7a9cfec4c3f627fd3d3b80c
 SHA512 
0157c751f5869de261c93624a1fa168a96e86ad1a169727bee428bb9d804b8bfac3d7b8e4b993e2e5d2414ee99a016702eb750d81c3cc71c9e4c659a5ff7b37f

diff --git a/www-apps/vaultwarden-web-bin/metadata.xml 
b/www-apps/vaultwarden-web-bin/metadata.xml
new file mode 100644
index 0000000000..889a71396a
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Rahil Bhimjiani</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">dani-garcia/bw_web_builds</remote-id>
+               
<bugs-to>https://github.com/dani-garcia/bw_web_builds/issues</bugs-to>
+               
<doc>https://github.com/dani-garcia/bw_web_builds/blob/master/README.md</doc>
+       </upstream>
+</pkgmetadata>

diff --git a/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild 
b/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
new file mode 100644
index 0000000000..a750806584
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
@@ -0,0 +1,29 @@
+# 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 *
+}

Reply via email to