[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: ungoogled-chromium: Install icons.
From: |
guix-commits |
Subject: |
04/08: gnu: ungoogled-chromium: Install icons. |
Date: |
Thu, 20 Jun 2019 17:03:44 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 3df7b15e6c9a11cedba1451f0459c715b8ce3ca1
Author: Alex Griffin <address@hidden>
Date: Tue Jun 18 14:55:30 2019 -0500
gnu: ungoogled-chromium: Install icons.
* gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Install icons.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/chromium.scm | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 2127e40..3a24222 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Marius Bakke <address@hidden>
+;;; Copyright © 2019 Alex Griffin <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -650,12 +651,6 @@ from forcing GEXP-PROMISE."
(scandir "." (cut regexp-exec install-regexp <>)))
(copy-file "chrome" (string-append lib "/chromium"))
- ;; TODO: Install icons from "../../chrome/app/themes" into
- ;; "out/share/icons/hicolor/$size".
- (install-file
- "product_logo_48.png"
- (string-append out "/share/icons/48x48/chromium.png"))
-
(copy-recursively "locales" locales)
(copy-recursively "resources" resources)
@@ -669,8 +664,18 @@ from forcing GEXP-PROMISE."
(,(string-append lib ":" nss "/lib/nss:" mesa "/lib:"
udev "/lib")))
;; Avoid file manager crash. See
<https://bugs.gnu.org/26593>.
- `("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+
"/share"))))
- #t)))))))
+ `("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+
"/share")))))
+
+ (with-directory-excursion "chrome/app/theme/chromium"
+ (for-each
+ (lambda (size)
+ (let ((icons (string-append out "/share/icons/hicolor/"
+ size "x" size "/apps")))
+ (mkdir-p icons)
+ (copy-file (string-append "product_logo_" size ".png")
+ (string-append icons "/chromium.png"))))
+ '("22" "24" "48" "64" "128" "256")))
+ #t))))))
(native-inputs
`(("bison" ,bison)
("gcc" ,gcc-8)
- branch master updated (28618b0 -> 9a2e5fe), guix-commits, 2019/06/20
- 08/08: gnu: ungoogled-chromium: Disable parallel build., guix-commits, 2019/06/20
- 07/08: gnu: samba: Update to 4.10.5 [fixes CVE-2019-12435, CVE-2019-12436]., guix-commits, 2019/06/20
- 05/08: gnu: openh264: Update to 2.0.0., guix-commits, 2019/06/20
- 01/08: gnu: dbus: Fix CVE-2019-12749., guix-commits, 2019/06/20
- 06/08: gnu: ungoogled-chromium: Update to 75.0.3770.100-0.5d8abc3., guix-commits, 2019/06/20
- 02/08: gnu: python-unidecode: Update to 1.1.0., guix-commits, 2019/06/20
- 03/08: gnu: Use HTTPS for sphinx-doc.org., guix-commits, 2019/06/20
- 04/08: gnu: ungoogled-chromium: Install icons.,
guix-commits <=