blob: aca670496136d05dc49b24edc7b944794c01c134 (
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
44
45
46
|
EAPI=8
LUA_COMPAT=( lua5-{1,3,4} luajit )
inherit lua-single toolchain-funcs
DESCRIPTION="Minimal system info fetcher written in C with Lua configuration"
HOMEPAGE="https://codeberg.org/nzuum/fetchit"
COMMIT="b0ed7c1fe08d32fc26e458cd971930d550720462"
SRC_URI="https://codeberg.org/nzuum/fetchit/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/fetchit"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="${LUA_DEPS}"
DEPEND="${RDEPEND}"
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="-I$(pkg-config --variable=includedir lua) -I src" \
LIBS="$(pkg-config --libs lua)"
}
src_install() {
dobin build/fetchit
dodoc README.md
insinto /usr/share/fetchit
doins -r config/*
}
pkg_postinst() {
elog "Fetchit requires a user configuration file."
elog "To get started, copy the default configuration:"
elog " mkdir -p ~/.config/fetchit"
elog " cp /usr/share/fetchit/init.lua ~/.config/fetchit/"
elog "You may also copy the logo directory:"
elog " cp -r /usr/share/fetchit/logos ~/.config/fetchit/"
elog "Edit ~/.config/fetchit/init.lua to customize your output."
}
|