summaryrefslogtreecommitdiff
path: root/app-misc/afetch/afetch-2.1.0.ebuild
blob: dfa850ef7cc9b29b54c25c2da86649066fb6154d (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
# Copyright 2021 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7

inherit savedconfig

DESCRIPTION="Simple system info written in C"
HOMEPAGE="https://github.com/13-CF/afetch/"
SRC_URI="${HOMEPAGE}/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="savedconfig"

src_prepare() {
	default
	restore_config src/config.h
}

src_install() {
	emake DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr install
	save_config src/config.h
}