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

EAPI=7

DESCRIPTION="A modern, flat theme for Enlightenment WM"
HOMEPAGE="https://www.enlightenment.org/ https://phab.enlightenment.org/T6726"
SRC_URI="https://dev.gentoo.org/~juippis/distfiles/${P}.edj"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc x86"

RDEPEND="x11-wm/enlightenment"

S="${WORKDIR}"

src_prepare() {
	default

	# doins doesn't allow installing straight from DISTDIR.
	cp "${DISTDIR}"/${P}.edj . || die "Failed to prepare theme file."
}

src_configure() { :; }
src_compile() { :; }

src_install() {
	insinto /usr/share/elementary/themes/
	newins ${P}.edj flat-0.edj
}

pkg_postinst() {
	elog "You'll find e-flat-theme under System themes in theme selector."

	if [[ -n ${REPLACING_VERSIONS} ]]; then
		ewarn ""
		ewarn "You're updating flat-0 theme. Please reload Enlightenment"
		ewarn "through Menu -> Enlightenment -> Restart, or by issuing"
		ewarn "  enlightenment -restart"
		ewarn ""
	fi
}