summaryrefslogtreecommitdiff
path: root/x11-misc/i3blocks-contrib/i3blocks-contrib-20220514-r1.ebuild
blob: 75ff2954ea1c0366880c0912b43fc7a377e2425d (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="highly flexible status line for the i3 window manager"
HOMEPAGE="https://github.com/vivien/i3blocks-contrib"
GIT_HASH="45e56799298f04ccaaab7db69b3674667f990ed8"
SRC_URI="https://github.com/vivien/${PN}/archive/${GIT_HASH}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"

DEPEND="
	app-admin/sysstat
	sys-power/acpi
"
DEPEND="${DEPEND}"
BDEPEND=""

src_unpack() {
	default
	mv ${PN}-* "${S}"
}

src_prepare() {
	default
	sed -i 's#PREFIX = .*#PREFIX = /usr#' Makefile
}

src_install() {
	emake -j1 DESTDIR="${D}" install
}