net-proxy/clash-verge-bin: bump version to 2.0.3 (#6081)
[gentoo-zh.git] / app-admin / enpass / enpass-6.11.6.1833.ebuild
blob764af17d8ea8530eeb5e789eec2d4850a19a69f6
1 # Copyright 2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit desktop unpacker xdg
8 DESCRIPTION="A cross-platform, complete password management solution."
9 HOMEPAGE="https://www.enpass.io"
10 SRC_URI="https://apt.enpass.io/pool/main/e/${PN}/${PN}_${PV}_amd64.deb"
12 S="${WORKDIR}"
14 LICENSE="SINEW-EULA"
15 SLOT="0"
16 KEYWORDS="~amd64"
18 RESTRICT="bindist mirror strip"
20 # Dependencies
22 # objdump -p ./Enpass | grep NEEDED | awk '{print $2}' | xargs equery b | sort | uniq
24 DEPEND="elibc_glibc? ( sys-libs/glibc:2.2 )"
25 RDEPEND="
26 app-arch/xz-utils
27 dev-libs/glib:2
28 media-libs/fontconfig
29 media-libs/freetype:2
30 media-libs/libglvnd
31 media-libs/libpulse
32 net-print/cups
33 sys-apps/dbus
34 sys-apps/util-linux
35 sys-libs/zlib
36 x11-libs/gtk+:3
37 x11-libs/libICE
38 x11-libs/libSM
39 x11-libs/libX11
40 x11-libs/libXScrnSaver
41 x11-libs/libxcb
42 x11-libs/libxkbcommon
43 x11-libs/pango
44 x11-libs/xcb-util-image
45 x11-libs/xcb-util-keysyms
46 x11-libs/xcb-util-renderutil
47 x11-libs/xcb-util-wm"
49 QA_PREBUILT="opt/enpass/*"
51 src_prepare() {
52 default
53 gzip -d "${S}"/usr/share/doc/enpass/changelog.gz || die
56 src_install() {
57 domenu "${S}"/usr/share/applications/enpass.desktop
58 dodoc "${S}"/usr/share/doc/enpass/changelog
60 insinto /opt/enpass
61 doins -r "${S}"/opt/enpass/.
62 fperms +x /opt/enpass/{Enpass,importer_enpass,wifisyncserver_bin}
64 insinto /usr/share/mime/packages
65 doins "${S}"/usr/share/mime/packages/application-enpass.xml
67 local size
68 for size in 16 22 24 32 48; do
69 doicon -c status -s ${size} "${S}"/usr/share/icons/hicolor/${size}x${size}/status/enpass-status.png
70 doicon -c status -s ${size} "${S}"/usr/share/icons/hicolor/${size}x${size}/status/enpass-status-dark.png
71 done
73 for size in 16 24 32 48 64 96 128 256; do
74 doicon -s ${size} "${S}"/usr/share/icons/hicolor/${size}x${size}/apps/enpass.png
75 done