summaryrefslogtreecommitdiff
path: root/app-misc/gloriousctl/gloriousctl-9999.ebuild
blob: eaa0455c11cca3c24b636ef8ba00fc98df7c0747 (plain) (blame)
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
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit git-r3 toolchain-funcs

DESCRIPTION="A utility to adjust the settings of Model O/D mice"
HOMEPAGE="https://github.com/enkore/gloriousctl"
EGIT_REPO_URI="https://github.com/enkore/${PN}.git"

LICENSE="EUPL-1.2"
SLOT="0"
KEYWORDS=""

DEPEND="dev-libs/hidapi"
RDEPEND="${DEPEND}"
BDEPEND=""

src_prepare () {
	default

	sed -i \
		-e 's/gcc/$(CC)/' "${S}/Makefile" \
		|| die

	tc-export CC
}

src_install() {
	into /
	dobin "${PN}"
	dodoc README.md
}