mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: fcitx5-material-color-theme: Update to 0.2.1.
* gnu/packages/fcitx5.scm (fcitx5-material-color-theme): Update to 0.2.1. [arguments]: Adjust 'install' phase accordingly.
This commit is contained in:
parent
38a1cf3d26
commit
c7e4429a64
1 changed files with 9 additions and 6 deletions
|
@ -472,7 +472,7 @@ (define-public fcitx5-configtool
|
|||
(define-public fcitx5-material-color-theme
|
||||
(package
|
||||
(name "fcitx5-material-color-theme")
|
||||
(version "0.1")
|
||||
(version "0.2.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
|
@ -481,7 +481,7 @@ (define-public fcitx5-material-color-theme
|
|||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1mgc722521jmfx0xc3ibmiycd3q2w7xg2956xcpc07kz90gcdjaa"))))
|
||||
(base32 "0drdypjf1njl7flkb5d581vchwlp4gaqyws3cp0v874wkwh4gllb"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
|
@ -497,7 +497,6 @@ (define-public fcitx5-material-color-theme
|
|||
|
||||
(define (install-theme-variant variant target)
|
||||
(let ((dir (string-append themes-prefix "/" target))
|
||||
(png (string-append "panel-" variant ".png"))
|
||||
(conf (string-append "theme-" variant ".conf")))
|
||||
(format #t "install: Installing color variant \"~a\" to ~a~%"
|
||||
variant dir)
|
||||
|
@ -505,13 +504,15 @@ (define (install-theme-variant variant target)
|
|||
(("^Name=.*")
|
||||
(string-append "Name=" target "\n")))
|
||||
(mkdir-p dir)
|
||||
(install-file png dir)
|
||||
(copy-file conf (string-append dir "/theme.conf"))
|
||||
(symlink (string-append assets-dir "/arrow.png")
|
||||
(string-append dir "/arrow.png"))))
|
||||
(string-append dir "/arrow.png"))
|
||||
(symlink (string-append assets-dir "/radio.png")
|
||||
(string-append dir "/radio.png"))))
|
||||
|
||||
(mkdir-p assets-dir)
|
||||
(install-file "arrow.png" assets-dir)
|
||||
(install-file "radio.png" assets-dir)
|
||||
(for-each
|
||||
(lambda (x)
|
||||
(install-theme-variant
|
||||
|
@ -520,7 +521,9 @@ (define (install-theme-variant variant target)
|
|||
"orange" "pink" "red" "teal"))
|
||||
|
||||
(install-theme-variant
|
||||
"deepPurple" "Material-Color-DeepPurple")))))))
|
||||
"deepPurple" "Material-Color-DeepPurple")
|
||||
(install-theme-variant
|
||||
"sakuraPink" "Material-Color-SakuraPink")))))))
|
||||
(home-page "https://github.com/hosxy/Fcitx5-Material-Color")
|
||||
(synopsis "Material Design for Fcitx 5")
|
||||
(description "Fcitx5-material-color-theme is a Material Design theme
|
||||
|
|
Loading…
Reference in a new issue