diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-02-17 10:43:14 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-02-17 12:07:12 +0000 |
commit | 172d17f6b13f9aebc22b169691251c98d544746c (patch) | |
tree | 128cbdf99bbdaae555ab7228ff03e021eb0797ef /x11-misc/cbatticon/cbatticon-1.6.12.ebuild | |
parent | app-backup/borgmatic: add 1.5.23 (diff) | |
download | gentoo-172d17f6b13f9aebc22b169691251c98d544746c.tar.gz gentoo-172d17f6b13f9aebc22b169691251c98d544746c.tar.bz2 gentoo-172d17f6b13f9aebc22b169691251c98d544746c.zip |
x11-misc/cbatticon: add 1.6.12
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'x11-misc/cbatticon/cbatticon-1.6.12.ebuild')
-rw-r--r-- | x11-misc/cbatticon/cbatticon-1.6.12.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/x11-misc/cbatticon/cbatticon-1.6.12.ebuild b/x11-misc/cbatticon/cbatticon-1.6.12.ebuild new file mode 100644 index 000000000000..aec71acea6c9 --- /dev/null +++ b/x11-misc/cbatticon/cbatticon-1.6.12.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit strip-linguas toolchain-funcs + +DESCRIPTION="A lightweight and fast battery icon that sits in your system tray" +HOMEPAGE="https://github.com/valr/cbatticon" +SRC_URI="https://github.com/valr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="libnotify" + +RDEPEND="dev-libs/glib:2 + x11-libs/gtk+:3 + libnotify? ( x11-libs/libnotify )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( Changelog README ) + +src_prepare() { + default + + strip-linguas -i . +} + +src_compile() { + tc-export CC + emake \ + $(usex libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \ + V=1 \ + VERSION="${PF}" \ + WITH_GTK3=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + DOCDIR="/usr/share/doc/${PF}" \ + LANGUAGES="${LINGUAS}" \ + V=1 VERSION="${PF}" \ + install + + einstalldocs +} |