You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.7 KiB
89 lines
1.7 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
3 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
3 years ago
|
|
||
2 years ago
|
inherit desktop unpacker xdg-utils
|
||
3 years ago
|
|
||
|
MY_PN="Bitwarden"
|
||
2 years ago
|
|
||
3 years ago
|
DESCRIPTION="Bitwarden password manager desktop client"
|
||
|
HOMEPAGE="https://bitwarden.com/"
|
||
2 years ago
|
SRC_URI="https://github.com/bitwarden/clients/releases/download/desktop-v${PV}/Bitwarden-${PV}-amd64.deb"
|
||
2 years ago
|
S="${WORKDIR}"
|
||
3 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
|
||
|
RDEPEND="
|
||
|
app-accessibility/at-spi2-atk:2
|
||
|
app-accessibility/at-spi2-core:2
|
||
|
app-crypt/libsecret
|
||
|
dev-libs/atk
|
||
|
dev-libs/expat
|
||
|
dev-libs/glib
|
||
2 years ago
|
sys-libs/glibc
|
||
3 years ago
|
dev-libs/nspr
|
||
|
dev-libs/nss
|
||
|
media-libs/alsa-lib
|
||
|
media-libs/mesa
|
||
|
net-print/cups
|
||
|
sys-apps/dbus
|
||
|
sys-apps/util-linux
|
||
|
x11-libs/cairo
|
||
|
x11-libs/gdk-pixbuf:2
|
||
|
x11-libs/gtk+:3
|
||
|
x11-libs/libdrm
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libxcb
|
||
|
x11-libs/libXcomposite
|
||
|
x11-libs/libXcursor
|
||
|
x11-libs/libXdamage
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXfixes
|
||
|
x11-libs/libXi
|
||
|
x11-libs/libxkbcommon
|
||
|
x11-libs/libXrandr
|
||
|
x11-libs/libXrender
|
||
|
x11-libs/libXScrnSaver
|
||
2 years ago
|
x11-libs/libxshmfence
|
||
3 years ago
|
x11-libs/libXtst
|
||
|
x11-libs/pango
|
||
|
"
|
||
2 years ago
|
IDEPEND="
|
||
|
dev-util/desktop-file-utils
|
||
|
dev-util/gtk-update-icon-cache
|
||
|
"
|
||
3 years ago
|
|
||
|
QA_PREBUILT="
|
||
2 years ago
|
opt/Bitwarden/*.so*
|
||
3 years ago
|
opt/Bitwarden/bitwarden
|
||
|
opt/Bitwarden/chrome-sandbox
|
||
2 years ago
|
opt/Bitwarden/chrome_crashpad_handler
|
||
3 years ago
|
"
|
||
|
|
||
|
src_install() {
|
||
|
insinto /opt
|
||
|
doins -r opt/${MY_PN}
|
||
|
fperms 755 /opt/Bitwarden/bitwarden
|
||
|
fperms 4755 /opt/Bitwarden/chrome-sandbox
|
||
|
|
||
2 years ago
|
domenu usr/share/applications/bitwarden.desktop
|
||
3 years ago
|
|
||
2 years ago
|
local x
|
||
2 years ago
|
for x in 16 32 64 128 256 512; do
|
||
2 years ago
|
doicon -s ${x} usr/share/icons/hicolor/${x}*/*
|
||
2 years ago
|
done
|
||
3 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
xdg_desktop_database_update
|
||
|
xdg_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
xdg_desktop_database_update
|
||
|
xdg_icon_cache_update
|
||
|
}
|