summaryrefslogtreecommitdiff
blob: 08ed1122de420c1b71d5cb02297a9d80eda6a1b8 (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 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gnome2-utils xdg

DESCRIPTION="Dali Clock is a digital clock. When a digit changes, it melts into its new shape"
HOMEPAGE="https://www.jwz.org/xdaliclock"
SRC_URI="https://www.jwz.org/xdaliclock/${P}.tar.gz"
S="${WORKDIR}"/${P}/X11

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"

RDEPEND="
	dev-libs/glib:2
	x11-libs/gtk+:3
	x11-libs/libX11
	virtual/opengl
"
DEPEND="
	${RDEPEND}
	x11-base/xorg-proto
"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/xdaliclock-2.47-DESTDIR.patch
)

src_install() {
	dodir /usr/bin /usr/share/pixmaps
	dodir /usr/share/glib-2.0/schemas /usr/share/man/man1/
	dodir /usr/share/applications/

	default

	# Will collide with dev-libs/glib
	rm "${ED}"/usr/share/glib-2.0/schemas/gschemas.compiled || die

	#dobin ${PN}
	#newman ${PN}.man ${PN}.1
	#dodoc ../README

	#doicon xdaliclock.png
	#domenu xdaliclock.desktop
}

pkg_postinst() {
	xdg_pkg_postinst
	gnome2_schemas_update
}

pkg_postrm() {
	xdg_pkg_postrm
	gnome2_schemas_update
}