summaryrefslogtreecommitdiff
path: root/app-misc/redcore-skel/redcore-skel-1337.ebuild
blob: faecc431fa1466a24af36dd2b357cd0c0c3b5587 (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
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=6
EGIT_REPO_URI="https://gitlab.com/redcore/redcore-skel.git"

inherit eutils git-r3 fdo-mime

DESCRIPTION="Redcore Linux skel tree"
HOMEPAGE="https://redcorelinux.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="
	media-fonts/roboto
	x11-themes/material-icon-theme
	x11-themes/redcore-theme
	x11-themes/redcore-artwork-community
	x11-themes/redcore-artwork-core"

S="${WORKDIR}/${P}"

src_install () {
	dodir etc/skel
	insinto etc/skel
	doins -r skel/*
	doins -r skel/.*

	dodir usr/share/desktop-directories
	insinto usr/share/desktop-directories
	doins "${FILESDIR}"/menu/xdg/*.directory

	dodir usr/share/redcore
	insinto usr/share/redcore
	doins -r "${FILESDIR}"/menu/*

	doicon "${FILESDIR}"/menu/img/redcore-weblink.png

	dodir etc/xdg/autostart
	insinto etc/xdg/autostart
	doins "${FILESDIR}"/loginsound.desktop

	dodir usr/share/sounds
	insinto usr/share/sounds
	doins "${FILESDIR}"/redcore.ogg

	rm -rf ${D}etc/.git
}

pkg_postinst() {
	if [ -x "/usr/bin/xdg-desktop-menu" ]; then
		xdg-desktop-menu install \
			/usr/share/redcore/xdg/redcore-redcore.directory \
			/usr/share/redcore/xdg/*.desktop
	fi

	fdo-mime_desktop_database_update
}

pkg_prerm() {
	if [ -x "/usr/bin/xdg-desktop-menu" ]; then
		xdg-desktop-menu uninstall /usr/share/redcore/xdg/redcore-redcore.directory /usr/share/redcore/xdg/*.desktop
	fi
}