From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: Add cbatticon. Date: Tue, 09 Aug 2016 16:07:01 +0000 Message-ID: <87mvkmoriy.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9Ys-0001ez-5H for guix-devel@gnu.org; Tue, 09 Aug 2016 12:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX9Ym-0006Ng-Ci for guix-devel@gnu.org; Tue, 09 Aug 2016 12:07:25 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:57744 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX9Yl-0006NN-V3 for guix-devel@gnu.org; Tue, 09 Aug 2016 12:07:20 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 7caed7ae TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Tue, 9 Aug 2016 16:07:17 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain This adds cbatticon, a small lightweight battery icon for the system tray. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-cbatticon.patch Content-Transfer-Encoding: quoted-printable From=20bb91f4adbb3a9e0ac032c7287f35e84b325901dd Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 9 Aug 2016 16:02:46 +0000 Subject: [PATCH] gnu: Add cbatticon. * gnu/packages/admin.scm (cbatticon): New variable. =2D-- gnu/packages/admin.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++= -- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eada796..4200fc8 100644 =2D-- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2016 Efraim Flashner ;;; Copyright =C2=A9 2016 Peter Feigl ;;; Copyright =C2=A9 2016 John J. Foerch +;;; Copyright =C2=A9 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -70,7 +71,9 @@ #:use-module (gnu packages xorg) #:use-module (gnu packages python) #:use-module (gnu packages man) =2D #:use-module (gnu packages autotools)) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gtk)) =20 (define-public aide (package @@ -111,7 +114,7 @@ usual file attributes can be checked for inconsistencie= s.") (method url-fetch) (uri (string-append "https://github.com/Xfennec/" name "/archive/v" version ".tar.gz")) =2D (sha256 + (sha256=20=20 (base32 "133iar4vq5vlklydb4cyazjy6slmpbndrws474mg738bd8avc30n")) (file-name (string-append name "-" version ".tar.gz")))) (build-system gnu-build-system) @@ -1698,3 +1701,44 @@ a new command using the matched rule, and runs it.") display your disk usage in whatever format you prefer. It is designed to = be highly portable. Great for heterogenous networks.") (license license:zlib))) + +(define-public cbatticon + (package + (name "cbatticon") + (version "1.6.4") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/valr/" + name "/archive/" version ".tar.gz")) + (sha256 + (base32 + "023fvsa4q7rl98rqgwrb1shyzaybdkkbyz5sywd0s5p7ixkksxqx")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no make check + #:make-flags + (list (string-append "PREFIX=3D" (assoc-ref %outputs "out")) + "CC=3Dgcc") + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-before 'build 'patch-paths-in-Makefile + (lambda* (#:key outputs #:allow-other-keys) + (lambda _ + (substitute* "Makefile" + (("msgfmt") (which "msgfmt")) + (("RM =3D rm -f") + (string-append "RM =3D " (which "rm") " -f"))))))))) + (propagated-inputs + `(("libnotify" ,libnotify))) + (inputs + `(("gtk+" ,gtk+) + ("gnu-gettext" ,gnu-gettext))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (synopsis "A lightweigth battery icon for the system tray") + (description "cbatticon is a lightweight battery icon that displays +the status of your battery.") + (home-page "https://github.com/valr/cbatticon") + (license license:gpl2+))) =2D-=20 2.9.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =2D-=20 =E2=99=A5=E2=92=B6 ng0 Current Keys: https://we.make.ritual.n0.is/ng0.txt For non-prism friendly talk find me on http://www.psyced.org --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXqf+nAAoJEAKilhUMIBgjLW4P/R0qYgTGzKZQdNQ0uZU7CE2k XhW+Ftof/x8yU5GhwFd+STdovP+u5umbtN9XtfxaWCD0GgSrjvIHHk/bopnSU+Ea B1zArij3Hs4HSEUFHT7RI+4EybnP3a1BowdpwHni5Gm8ppvGibed1B7J5GIFC4Zy XsDQdiqnR43HxaKcu+ys7JvIrIhvdCawBvEXkuK8klvTUz8z/+QesBJ+ZOfhdUuQ ftyvcPJNmfzeV/TEX3VciVdO6yNMGPQWrQCImSVoFjDo9lCpd5KOjPE7ssYy3SQC vTh7yx6KYW1MxHnxw6MYIRS/gBdQoBLV8NTGDzPieazk3lD90grIjzt5OjLnvGF3 O+5ra+cm7DS1zv4LqgfeO9ejUblnz4wRLOXvyqzaQpdZl0gLUpcwsWdMrJKwLaCH HgCEyadhN7AWMUqYPCuiq2SNKIHIg94YdUJzeiG4yENxPX68ovAMC0WBOFqJ9oyB IbfRSsGXm8Vvlq/Cogbd5ZEtLza/3L+1ZKX9PTFwi2EJKMPE6ijTHqeZm8ofOoGw T0K30oECiQmw0StLqP2rD4mbEiEXFW+0xNaqR7gzq1XpfEVUuA/YH1N7GDJr3HUM a5xGB+G+Hvv4LSqxsUFJJ5IxnJgeVgjJ/ouZwvSPiXnW6Dbz2lKUpvEbdm5FxsOf qC+LmaGacezCUw1TgFZr =96xg -----END PGP SIGNATURE----- --==-=-=--