summaryrefslogtreecommitdiff
path: root/net-im/fluffychat-bin/fluffychat-bin-2.11.3.ebuild
blob: c2061c9ed50009bcc71c3b57774f2b66ce469406 (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# I hope this will be only a temporary ebuild until I have time to add flutter
# and/or dart so we can build it from source

EAPI=8

inherit desktop wrapper xdg

DESCRIPTION="The cutest instant messenger in the [matrix]"
HOMEPAGE="https://fluffychat.im/ https://github.com/krille-chan/fluffychat"
SRC_URI="amd64? ( https://github.com/krille-chan/fluffychat/releases/download/v${PV}/fluffychat-linux-x64.tar.gz -> ${P}.tar.gz )"
SRC_URI+=" https://gentoo.kropotkin.rocks/distfiles/${PN}.png"

S="${WORKDIR}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="bindist mirror strip test"

QA_PREBUILT="*"

RDEPEND="
	app-accessibility/at-spi2-core:2
	app-crypt/libsecret
	dev-libs/glib:2
	media-libs/fontconfig
	media-libs/harfbuzz
	media-libs/libepoxy
	media-libs/mesa
	net-libs/libsoup:3.0
	net-libs/webkit-gtk:4.1
	virtual/zlib
	x11-libs/cairo
	x11-libs/gdk-pixbuf:2
	x11-libs/gtk+:3
	x11-libs/libdrm
	x11-libs/libX11
	x11-libs/libXcomposite
	x11-libs/libXdamage
	x11-libs/libXext
	x11-libs/libXfixes
	x11-libs/libXrandr
	x11-libs/pango
"

src_prepare() {
	default

	# No program or library seems to need it (checked with ldd and strings)
	# and libdartjni.so depends on libjvm.so
	rm lib/libdartjni.so || die
}

src_install() {
	insinto /opt/fluffychat
	doins -r data lib

	exeinto /opt/fluffychat
	doexe fluffychat

	doicon "${DISTDIR}/${PN}.png"
	make_desktop_entry --eapi9 fluffychat -n FluffyChat -c "Network;Chat;InstantMessaging;"
	make_wrapper "fluffychat" "/opt/fluffychat/fluffychat"
}