From ce1399bc9cdc8d9d6de7afad2f72d7b433090146 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 14 Aug 2016 13:30:11 +0200 Subject: [PATCH] x11-misc/cbatticon: initial import --- metadata/repository_mask.conf | 1 + .../cbatticon/cbatticon-1.6.4.exheres-0 | 8 ++++ .../cbatticon/cbatticon-scm.exheres-0 | 8 ++++ packages/x11-misc/cbatticon/cbatticon.exlib | 40 +++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 packages/x11-misc/cbatticon/cbatticon-1.6.4.exheres-0 create mode 100644 packages/x11-misc/cbatticon/cbatticon-scm.exheres-0 create mode 100644 packages/x11-misc/cbatticon/cbatticon.exlib diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf index 54a23fbc..d180394b 100644 --- a/metadata/repository_mask.conf +++ b/metadata/repository_mask.conf @@ -6,6 +6,7 @@ games-strategy/freesynd[~scm] media-gfx/pinta[~scm] x11-apps/terminator[~scm] + x11-misc/cbatticon[~scm] x11-wm/i3[~scm] ) [[ *author = [ Julian Ospald ] diff --git a/packages/x11-misc/cbatticon/cbatticon-1.6.4.exheres-0 b/packages/x11-misc/cbatticon/cbatticon-1.6.4.exheres-0 new file mode 100644 index 00000000..950abbef --- /dev/null +++ b/packages/x11-misc/cbatticon/cbatticon-1.6.4.exheres-0 @@ -0,0 +1,8 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require cbatticon + +SLOT="0" +PLATFORMS="~amd64 ~x86" + diff --git a/packages/x11-misc/cbatticon/cbatticon-scm.exheres-0 b/packages/x11-misc/cbatticon/cbatticon-scm.exheres-0 new file mode 100644 index 00000000..950abbef --- /dev/null +++ b/packages/x11-misc/cbatticon/cbatticon-scm.exheres-0 @@ -0,0 +1,8 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require cbatticon + +SLOT="0" +PLATFORMS="~amd64 ~x86" + diff --git a/packages/x11-misc/cbatticon/cbatticon.exlib b/packages/x11-misc/cbatticon/cbatticon.exlib new file mode 100644 index 00000000..17a2b340 --- /dev/null +++ b/packages/x11-misc/cbatticon/cbatticon.exlib @@ -0,0 +1,40 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +export_exlib_phases src_compile + +require github [ user="valr" ] + +SUMMARY="A lightweight and fast battery icon that sits in your system tray" + +LICENCES="GPL-2" + +MYOPTIONS=" + libnotify [[ description = [ Enable battery level notifications ] ]] +" + +DEPENDENCIES=" + build: + sys-devel/gettext + virtual/pkg-config + build+run: + dev-libs/glib:2 + x11-libs/gtk+:3 + libnotify? ( x11-libs/libnotify ) +" + +DEFAULT_SRC_INSTALL_PARAMS=( + BINDIR="/usr/$(exhost --target)/bin" + DOCDIR="/usr/share/doc/${PNVR}" + V=1 + VERSION="${PNVR}" +) + +cbatticon_src_compile() { + emake \ + $(option libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \ + WITH_GTK3=1 \ + V=1 \ + VERSION="${PNVR}" +} +