summaryrefslogtreecommitdiff
path: root/net-p2p/monero-gui-bin/monero-gui-bin-0.18.4.3.ebuild
blob: ecd7cfc10f1353e10b03ac192ed362141fc791e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg

DESCRIPTION="An open-source GUI wallet developed by the Monero community."
HOMEPAGE="https://github.com/monero-project/monero-gui/ https://www.getmonero.org/"
SRC_URI="https://downloads.getmonero.org/gui/monero-gui-linux-x64-v${PV}.tar.bz2 -> ${P}.tar.bz2"

S="${WORKDIR}/monero-gui-v${PV}"
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="-* ~amd64"

IUSE="+daemon tools wallet-cli wallet-rpc"

RDEPEND="
	dev-libs/glib
	media-libs/libglvnd
	x11-libs/libX11
	x11-libs/libxcb
	x11-libs/libxkbcommon
	x11-libs/xcb-util-image
	x11-libs/xcb-util-keysyms
	x11-libs/xcb-util-renderutil
	x11-libs/xcb-util-wm
"

QA_PREBUILT="*"

src_install() {
	insinto /usr/bin

	doins monero-wallet-gui
	fperms +x /usr/bin/monero-wallet-gui

	if use daemon ; then
		doins monerod
		fperms +x /usr/bin/monerod
	fi

	if use tools ; then
		doins extras/monero-blockchain-ancestry
		doins extras/monero-blockchain-depth
		doins extras/monero-blockchain-export
		doins extras/monero-blockchain-import
		doins extras/monero-blockchain-mark-spent-outputs
		doins extras/monero-blockchain-prune
		doins extras/monero-blockchain-prune-known-spent-data
		doins extras/monero-blockchain-stats
		doins extras/monero-blockchain-usage
		doins extras/monero-gen-ssl-cert
		doins extras/monero-gen-trusted-multisig
		fperms +x /usr/bin/monero-blockchain-ancestry
		fperms +x /usr/bin/monero-blockchain-depth
		fperms +x /usr/bin/monero-blockchain-export
		fperms +x /usr/bin/monero-blockchain-import
		fperms +x /usr/bin/monero-blockchain-mark-spent-outputs
		fperms +x /usr/bin/monero-blockchain-prune
		fperms +x /usr/bin/monero-blockchain-prune-known-spent-data
		fperms +x /usr/bin/monero-blockchain-stats
		fperms +x /usr/bin/monero-blockchain-usage
		fperms +x /usr/bin/monero-gen-ssl-cert
		fperms +x /usr/bin/monero-gen-trusted-multisig
	fi

	if use wallet-cli ; then
		doins extras/monero-wallet-cli

		fperms +x /usr/bin/monero-wallet-cli
	fi

	if use wallet-rpc ; then
		doins extras/monero-wallet-rpc
		fperms +x /usr/bin/monero-wallet-rpc
	fi

#	domenu "${FILESDIR}"/monero-gui.desktop

#	local x
#	for x in 16 24 32 48 64 96 128 256; do
#		newicon -s ${x} "${FILESDIR}"/${x}x${x}.png monero-gui.png
#	done
}