blob: bacc9cb267dc1bb9cd3d677121b2b27f8bb5c8b3 (
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 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils systemd
DESCRIPTION="Daemon for radeon-profile GUI"
HOMEPAGE="https://github.com/marazmista/radeon-profile-daemon"
if [[ "${PV}" == 99999999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/marazmista/radeon-profile-daemon.git"
else
SRC_URI="https://github.com/marazmista/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
S="${WORKDIR}/${P}/${PN}"
src_prepare() {
default
sed \
-e '/^bin\.path/s@/bin@/sbin@' \
-e "/^service\.path/s@=.*\$@= $(systemd_get_systemunitdir)@" \
-i radeon-profile-daemon.pro || die
sed \
-e '/^ExecStart/s@/bin/@/sbin/@' \
-i extra/${PN}.service || die
}
src_configure() {
eqmake5
}
src_install() {
emake INSTALL_ROOT="${D}" install
newinitd "${FILESDIR}"/${PN}.initd ${PN}
}
|