~ruther/guix-local

0dfefe8d695d8782838cc58f712f48387003f97b — Cayetano Santos 9 months ago 1393483
gnu: svkbd: Update to 0.4.2.

* gnu/packages/suckless.scm (svkbd)[source]: Switch to
git-fetch.
[arguments]: Fix max column.

Change-Id: I3661fc433d39717d498c9a9b5b9f0d61fef1f791
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
1 files changed, 26 insertions(+), 22 deletions(-)

M gnu/packages/suckless.scm
M gnu/packages/suckless.scm => gnu/packages/suckless.scm +26 -22
@@ 1262,30 1262,34 @@ a nice format.")
(define-public svkbd
  (package
    (name "svkbd")
    (version "0.4.1")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://dl.suckless.org/tools/svkbd-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "0nhgmr38pk1a8zrcrxd1ygh0m843a3bdchkv8phl508x7vy63hpv"))))
    (version "0.4.2")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "git://git.suckless.org/svkbd/")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "186q9k6b5fhwnq65ch22fxqs64zyxz0vb7rwdyanx3qpcmb48byf"))))
    (build-system gnu-build-system)
    (arguments
     (list #:tests? #f
           #:make-flags
           #~(list (string-append "CC=" #$(cc-for-target))
                   (string-append "PREFIX=" #$output))
           #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'patch
                 (lambda* (#:key inputs outputs #:allow-other-keys)
                   (substitute* "config.mk"
                     (("/usr/local") #$output)
                     (("/usr/X11R6") #$libx11)
                     (("/usr/include/freetype2") (string-append #$freetype
                                                  "/include/freetype2")))))
               (delete 'configure)))) ;no configure script
     (list
      #:tests? #f
      #:make-flags
      #~(list (string-append "CC=" #$(cc-for-target))
              (string-append "PREFIX=" #$output))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (substitute* "config.mk"
                (("/usr/local") #$output)
                (("/usr/X11R6") #$libx11)
                (("/usr/include/freetype2")
                 (string-append #$freetype "/include/freetype2")))))
          (delete 'configure)))) ;no configure script
    (native-inputs (list pkg-config))
    (inputs (list freetype libx11 libxft libxtst libxinerama))
    (propagated-inputs (list (libc-utf8-locales-for-target)))