From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH v2] gnu: Add cbatticon. Date: Tue, 09 Aug 2016 16:49:16 +0000 Message-ID: <87y44528hf.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]:56579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXADR-0004AH-2w for guix-devel@gnu.org; Tue, 09 Aug 2016 12:49:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXADP-0007Xx-M7 for guix-devel@gnu.org; Tue, 09 Aug 2016 12:49:21 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:57903 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXADP-0007Xk-7x for guix-devel@gnu.org; Tue, 09 Aug 2016 12:49:19 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 251be204 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Tue, 9 Aug 2016 16:49: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 Last patch had mistakes. Fixed this. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-cbatticon.patch Content-Transfer-Encoding: quoted-printable From=20ac578d27529cc2a5f39f66054b5991e44e65f0b9 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 9 Aug 2016 16:47:37 +0000 Subject: [PATCH] gnu: Add cbatticon. * gnu/packages/admin.scm (cbatticon): New variable. =2D-- gnu/packages/admin.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eada796..4025300 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 +;;; Coypright =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 @@ -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----- iQIcBAEBCgAGBQJXqgmMAAoJEAKilhUMIBgjPuIQALE/Uj1E0j3sNprnXg/NKBgu FkStIwHSMTalFI51KMvBq4UzcVruR1YKuesvqQNqstopA/LAcf/jihufsq5n11sv lg7hxNrSBkX50F/6+zJ2eTu69iHnybJ77SENiiLeDSo47/Ds8tcVv61MYkG81VH+ 2nHKHlHDyqKN/jhhnDFHUP9w5PvyYKhLGoQPlOjheydBjDZN0tr7ESuVGlIiQhrr y5DSIJ34MDOdDIvlAhRif8lSp+gM3jMTPL44GVIY1+nmkfZIbiv/6pFnui4r1ILi deUqSoX7twshfEWNB2Omzs7bgp+THnB7wTELwY2lvm0GcqYu1FkFwq6/CuR+asP9 /MklesDZuMVzlls13pQOyWjpHqAdeMJSMkNEEDbtSWGoYwcfiFEhnc2SrstmBLaj GF68pr+PUVJv/g8bB5j+z9XmV6ruY9vdz4qT7rEgjja5FW33DbmW9lZuvYd7OmPX HFtJttp7KOiEzlhIpgvkFStmJZvKF8a2ppzDpyMgbWYryFYrOB7jEioBjXoo0GOQ CmpWGz3G4mUrsbjK+AYijJeLAHcrOp3tP5LkKHHQUQYF3TvEdf7205VTWaA2b6CH lGrAAv6ElXfOObaU3UnI05v59zVUbBVvf5hT0Q8eQZ5eV10pkcaWZu9thT+yFc50 H2T07ob1zjLDWmW7DY1W =LGVK -----END PGP SIGNATURE----- --==-=-=--