From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36920) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSbI0-0004bq-8r for guix-patches@gnu.org; Thu, 07 Nov 2019 01:29:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSbHy-0007FX-SR for guix-patches@gnu.org; Thu, 07 Nov 2019 01:29:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSbHy-0007FM-PT for guix-patches@gnu.org; Thu, 07 Nov 2019 01:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSbHy-0003zD-K6 for guix-patches@gnu.org; Thu, 07 Nov 2019 01:29:02 -0500 Subject: [bug#38095] [PATCH] gnu: Add matcha-theme. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33971) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSat1-0007Xw-Lg for guix-patches@gnu.org; Thu, 07 Nov 2019 01:03:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSasz-00070Z-IO for guix-patches@gnu.org; Thu, 07 Nov 2019 01:03:14 -0500 Received: from mout01.posteo.de ([185.67.36.141]:49790) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iSasz-0005Qy-8Y for guix-patches@gnu.org; Thu, 07 Nov 2019 01:03:13 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A32DB16005D for ; Thu, 7 Nov 2019 07:02:07 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 477t8Z3QHlz6tm8 for ; Thu, 7 Nov 2019 07:02:06 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Nov 2019 07:02:06 +0100 From: Alexandros Theodotou Message-ID: <2838c4cd8a7085b3b42229c73fb5689e@posteo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38095@debbugs.gnu.org From c3dcea272a6600263cc806b64331b3d68d881b9c Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Thu, 7 Nov 2019 05:37:42 +0000 Subject: [PATCH] gnu: Add matcha-theme. * gnu/packages/matcha-theme.scm (matcha-theme): New variable. --- gnu/packages/matcha-theme.scm | 76 +++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 gnu/packages/matcha-theme.scm diff --git a/gnu/packages/matcha-theme.scm=20 b/gnu/packages/matcha-theme.scm new file mode 100644 index 0000000000..1eaf1659a7 --- /dev/null +++ b/gnu/packages/matcha-theme.scm @@ -0,0 +1,76 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2019 Alexandros Theodotou +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or=20 (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . +(define-module (matcha-theme) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system trivial) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages compression)) + +(define-public matcha-theme + (package + (name "matcha-theme") + (version "2019-11-02") + (source (origin + (method url-fetch) + (uri (string-append=20 "https://github.com/vinceliuice/matcha/archive/" version + ".tar.gz")) + (sha256 + (base32 + =20 "0vv16lxrfin187rbn844hfkrg3368in1wmmnygsnag8k2pzhw1a4")))) + (build-system trivial-build-system) + (outputs '("out")) + (arguments + '(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + (source (assoc-ref %build-inputs "source")) + (tar (assoc-ref %build-inputs "tar")) + (bash (assoc-ref %build-inputs "bash")) + (gzip (assoc-ref %build-inputs "gzip")) + (coreutils (assoc-ref %build-inputs "coreutils")) + (themesdir (string-append out "/share/themes"))) + ;; set PATH so we can use tar and the install script can find=20 coreutils + (setenv "PATH" (string-append tar "/bin:" + (string-append gzip "/bin:") + (string-append coreutils=20 "/bin:"))) + ;; untar + (invoke "tar" "xf" source) + (chdir "matcha-2019-11-02") + ;; replace shebang + (substitute* "Install" (("/bin/bash") (string-append bash=20 "/bin/bash"))) + ;; install + (mkdir-p themesdir) + (invoke (string-append bash "/bin/bash") "-c" + (string-append "./Install -d " themesdir)))))) + (native-inputs + `(("tar", tar) + ("bash", bash) + ("coreutils", coreutils) + ("gzip", gzip))) + (synopsis "Flat design theme for GTK 3, GTK 2 and GNOME-Shell") + (description + "Matcha is a flat Design theme for GTK 3, GTK 2 and Gnome-Shell +which supports GTK 3 and GTK 2 based desktop environments +like Gnome, Unity, Budgie, Pantheon, XFCE, Mate and others.") + (home-page "https://github.com/vinceliuice/matcha") + (license gpl3))) --=20 2.24.0