summaryrefslogtreecommitdiff
path: root/gui-apps/intiface-central-bin/intiface-central-bin-2.6.0.ebuild
blob: 23f2184b27056142337a35acd92cbcb5e8db09b3 (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
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg

DESCRIPTION="Buttplug frontend application"
HOMEPAGE="https://github.com/intiface/intiface-central"
SRC_URI="https://github.com/intiface/intiface-central/releases/download/v${PV}/intiface-central-v${PV}-linux-ubuntu-22.04-x64.zip"
S="${WORKDIR}/${PN/-bin/}-v${PV}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	app-accessibility/at-spi2-core
	dev-libs/glib
	dev-libs/openssl:0/3
	media-gfx/graphite2
	media-libs/harfbuzz
	sys-apps/dbus
	sys-apps/systemd-utils
	x11-libs/cairo
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:3[X]
	x11-libs/pango
"
BDEPEND="app-arch/unzip"

QA_PREBUILT="
	opt/${PN}/lib/*.so
	opt/${PN}/intiface_central
"

src_install() {
	insinto /opt/${PN}
	doins -r .
	fperms +x /opt/${PN}/intiface_central

	cat << EOF > intiface_central
#!/bin/sh
cd /opt/${PN}
./intiface_central "\${@}"
EOF
	dobin intiface_central

	newicon --size 512 \
		data/flutter_assets/assets/icons/intiface_central_icon.png ${PN}.png

	make_desktop_entry intiface_central "Intiface Central" ${PN} "Utility"
}