summaryrefslogtreecommitdiff
path: root/x11-misc/trayer-srg/trayer-srg-1.1.8-r2.ebuild
blob: 36d7a008af27f2847818f1bf53b58bc9283bff3f (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="trayer fork with multi monitor support and cleaned up codebase"
HOMEPAGE="https://github.com/sargon/trayer-srg"
SRC_URI="https://github.com/sargon/${PN}/archive/${P/-srg/}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-trayer-${PV}

LICENSE="MIT GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~arm x86"

RDEPEND="
	x11-libs/gdk-pixbuf:2
	dev-libs/glib:2
	x11-libs/gtk+:2
	x11-libs/libX11
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}/${P}-avoid-prestripping-of-files.patch"
	"${FILESDIR}/${P}-fix-define.patch"
)

src_configure() {
	./configure --prefix="${EPREFIX}" || die
}

src_compile() {
	emake TARGET=${PN} CC="$(tc-getCC)"
}

src_install() {
	dobin ${PN}
	einstalldocs
}