blob: 4118f7d9021ed51988252f394057a39b10039a7a (
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
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Displays a simple digital clock on the terminal"
HOMEPAGE="https://github.com/xorg62/tty-clock"
SRC_URI="https://github.com/xorg62/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"
DEPEND="sys-libs/ncurses:=[unicode(+)]"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_compile() {
# makefile does something with ncurses-config and calls old version
# let's just build it manually
$(tc-getCC) -Wall ${CFLAGS} ${PN//-/}.c \
$($(tc-getPKG_CONFIG) --libs ncursesw) \
-o ${PN} ${LDFLAGS} || die "Failed to build ${PN}"
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
einstalldocs
}
|