Hello,

Andreas Enge <andr...@enge.fr> writes:

> I had a quick look at converseen. It requires the qtlinguist package,
> which we do not have in Guix.

qtlinguist belongs to qttools, doesn't it?

The main issue in properly packaging converseen is, IMO, to remove the
(auto)update code all over the place.

For the record, here's a draft, without the check updates cleanup:

--8<---------------cut here---------------start------------->8---
(define-public converseen
  (package
    (name "converseen")
    (version "0.9.11.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/Faster3ck/Converseen";)
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0nxvac8df47gxg1klqlz0s3rxl0ykrikmciniwkb938bgilmaijm"))))
    (build-system cmake-build-system)
    (arguments
     (list
      #:tests? #false                   ;no tests
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-translations-location
            ;; Fix translations location.
            (lambda _
              (substitute* "src/translator.cpp"
                (("QString\\(\"%1/share/converseen/loc\"\\).arg\\(rootPath\\)")
                 (string-append "QString(\""
                                #$output
                                "/share/converseen/loc\")")))))
          ;; (add-after 'unpack 'disable-updates-checks
          ;;   ;; Disable "Check for updates" since there's no use for it
          ;;   ;; in Guix and we don't want software to phone home.
          ;;   (lambda _
          ;;     (error "foo")))
          )))
    (native-inputs
     (list pkg-config qttools-5))
    (inputs
     (list imagemagick qtbase-5))
    (home-page "https://converseen.fasterland.net/";)
    (synopsis "Batch image converter and resizer")
    (description
     "Converseen is an image batch conversion tool.  You can resize and
convert images in more than 100 different formats.")
    (license license:gpl3+)))
--8<---------------cut here---------------end--------------->8---

Regards,
-- 
Nicolas Goaziou

Reply via email to