aboutsummaryrefslogtreecommitdiff
blob: 7061e4a0fea91daa921d9fd6472cfa0c136e8db7 (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
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit gnome2-utils meson vala xdg

DESCRIPTION="A Gemini browser for elementary OS"
HOMEPAGE="https://github.com/starfish-app/Starfish"
SRC_URI="https://github.com/${PN}-app/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN^}-${PV}"

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

DEPEND="
	app-text/gtkspell:3=[vala]
	dev-libs/glib:2
	dev-libs/granite
	dev-libs/libgee:=
	gui-libs/libhandy:1
	net-libs/gnutls:=
	x11-libs/gdk-pixbuf:2
	x11-libs/gtk+:3
"
RDEPEND="${DEPEND}"
BDEPEND="$(vala_depend)"

src_prepare() {
	default
	vala_src_prepare

	sed "s/'doc', 'starfish'/'doc', '${PF}'/" -i meson.build || die
	sed \
		-e "s:{{MESON_INSTALL_PREFIX}}:${EPREFIX}/usr:g" \
		-e "s:doc/starfish:doc/${PF}:g" \
		-i data/gschema.xml || die
}

pkg_preinst() {
	gnome2_schemas_savelist
	gnome2_gdk_pixbuf_update
	xdg_pkg_preinst
}

pkg_postinst() {
	gnome2_gconf_install
	gnome2_schemas_update
	gnome2_gdk_pixbuf_update
	xdg_pkg_postinst
}

pkg_postrm() {
	gnome2_gconf_uninstall
	gnome2_schemas_update
	gnome2_gdk_pixbuf_update
	xdg_pkg_postrm
}