blob: ec63b57aaf0ee0bc3177bde1db33f22615ec4cf3 (
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
|
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit savedconfig git-r3
DESCRIPTION="Modular status bar for somebar written in c."
HOMEPAGE="https://git.sr.ht/~raphi/someblocks"
EGIT_REPO_URI="https://git.sr.ht/~raphi/someblocks"
LICENSE="ISC"
SLOT="0"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -i -e 's:$(LDFLAGS):$(CPPFLAGS) $(CFLAGS) $(LDFLAGS):' Makefile \
|| die "sed fix failed. Uh-oh..."
# prevent compilation in install phase
sed -i -e "s/install: output/install:/g" Makefile || die
restore_config blocks.h
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
einstalldocs
save_config blocks.h
}
|