blob: 64cae5901304b9a522a122df131eb37d8f264817 (
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
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop git-r3 xdg
DESCRIPTION="A free, open-source Monero wallet"
HOMEPAGE="https://featherwallet.org"
EGIT_REPO_URI="https://github.com/feather-wallet/feather.git"
# Feather is released under the terms of the BSD license, but it vendors
# code from Monero and Tor too.
LICENSE="BSD MIT"
SLOT="0"
IUSE="bounties calc crowdfunding home qrcode revuo tickers xmrig"
DEPEND="
dev-libs/libsodium:=
media-gfx/qrencode:=
media-gfx/zbar:=[v4l]
~dev-libs/polyseed-2.0.0
dev-libs/libzip:=
dev-libs/boost:=[nls]
>=dev-qt/qtbase-6.7.3:6
>=dev-qt/qtsvg-6.7.3:6
>=dev-qt/qtmultimedia-6.7.3:6
>=dev-qt/qtwebsockets-6.7.3:6
dev-libs/libgcrypt:=
virtual/zlib:=
dev-libs/openssl:=
net-dns/unbound:=
net-libs/czmq:=
qrcode? ( media-libs/zxing-cpp dev-util/bc-ur )
"
RDEPEND="
${DEPEND}
net-vpn/tor
xmrig? ( net-misc/xmrig )
"
BDEPEND="
virtual/pkgconfig
"
src_prepare() {
rm -r "${WORKDIR}"/${P}/src/third-party || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=OFF
-DARCH=x86-64
-DBUILD_TAG="linux-x64"
-DBUILD_64=ON
-DSELF_CONTAINED=OFF
-DWITH_PLUGIN_HOME=$(usex home)
-DWITH_PLUGIN_TICKERS=$(usex tickers)
-DWITH_PLUGIN_CROWDFUNDING=$(usex crowdfunding)
-DWITH_PLUGIN_BOUNTIES=$(usex bounties)
-DWITH_PLUGIN_REVUO=$(usex revuo)
-DWITH_PLUGIN_CALC=$(usex calc)
-DWITH_PLUGIN_XMRIG=$(usex xmrig)
-DCHECK_UPDATES=OFF
-DPLATFORM_INSTALLER=OFF
-DUSE_DEVICE_TREZOR=OFF
-DDONATE_BEG=OFF
-DWITH_SCANNER=$(usex qrcode)
)
cmake_src_configure
}
src_compile() {
cmake_build feather
}
src_install() {
dobin "${BUILD_DIR}/bin/feather"
newicon -s 256 "${WORKDIR}"/${P}/src/assets/images/appicons/256x256.png feather.png
newicon -s 128 "${WORKDIR}"/${P}/src/assets/images/appicons/128x128.png feather.png
newicon -s 96 "${WORKDIR}"/${P}/src/assets/images/appicons/96x96.png feather.png
newicon -s 64 "${WORKDIR}"/${P}/src/assets/images/appicons/64x64.png feather.png
newicon -s 48 "${WORKDIR}"/${P}/src/assets/images/appicons/48x48.png feather.png
newicon -s 32 "${WORKDIR}"/${P}/src/assets/images/appicons/32x32.png feather.png
domenu "${WORKDIR}"/${P}/src/assets/feather.desktop
}
pkg_postinst() {
xdg_pkg_postinst
einfo "Ensure that Tor is running with 'rc-service tor start' before"
einfo "using Feather."
einfo ""
einfo "Donation popup has been disabled in this build."
einfo "Consider donating to upstream developers here:"
einfo "https://docs.featherwallet.org/guides/donate"
}
|