Subject: bug#25973: [PATCH]: gnu: Add blind.

From: ng0 <[email-masked]>
Date: Sun, 5 Mar 2017 16:28:21 +0000

On 17-03-05 16:21:12, ng0 wrote:
> On 17-03-05 19:20:34, 宋文武 wrote:
> > From 7e747dab9c06aa862636423008148f1f08a90f1a Mon Sep 17 00:00:00 2001
> > From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <[email-masked]>
> > Date: Sun, 5 Mar 2017 19:08:25 +0800
> > Subject: [PATCH] gnu: Add blind.
> > 
> > * gnu/packages/suckless.scm (blind): New package.
> > ---
> >  gnu/packages/suckless.scm | 27 +++++++++++++++++++++++++++
> >  1 file changed, 27 insertions(+)
> > 
> > diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
> > index e30a0883a..58b2bd0f6 100644
> > --- a/gnu/packages/suckless.scm
> > +++ b/gnu/packages/suckless.scm
> > @@ -47,6 +47,33 @@
> >    #:use-module (gnu packages base)
> >    #:use-module (gnu packages libbsd))
> >  
> > +(define-public blind
> > +  (package
> > +    (name "blind")
> > +    (version "1.0")
> > +    (source (origin
> > +              (method url-fetch)
> > +              (uri (string-append "http://dl.suckless.org/tools/blind-"
> > +                                  version ".tar.gz"))
> > +              (sha256
> > +               (base32
> > +                "1b36k8fg2gmabm69jckqja49i8y4rcbccgvv2wija15ciszrm1x9"))))
> > +    (build-system gnu-build-system)
> > +    (arguments
> > +     '(#:tests? #f                      ; no check target
> > +       #:make-flags (list
> > +                     "CC=gcc"
> > +                     (string-append "PREFIX=" %output))
> > +       #:phases
> > +       (modify-phases %standard-phases
> > +         (delete 'configure))))         ; no configure script
> > +    (synopsis "Command line video editing utilities")
> > +    (home-page "http://tools.suckless.org/blind/")
> > +    (description
> > +     "Blind is a collection of command line video editing utilities.  It uses
> > +a custom raw video format with a simple container.")
> > +    (license license:isc)))
> > +
> >  (define-public dwm
> >    (package
> >      (name "dwm")
> > -- 
> > 2.11.1
> > 
> > 
> > 
> > 
> Looks good to me.
> 
> Do you think we could have a suckless and 2f30 url-scheme now?
> There's just so much repetition with those two domains going on because
> most software is so similar it could simply inherit from one base
> recipe.
> 
> I'm using a 2f30-uri in my "package" repository which held lots of
> 2f30.org and suckless.org software until recently.
> 
> 
> 

For reference:

;; Packages of software hosted on 2f30.org
(define* (2f30-uri name version #:optional (extension ".tar.gz"))
  "Return a URI string for the package hosted on 2f30.org
corresponding to NAME and VERSION.  EXTENSION is the file name
extension, such as '.tar.gz'."
  (string-append "http://dl.2f30.org/releases/"
                 name "-" version extension))

Which when used made maintenance a bit easier.

The same could be written up for suckless.org, and then we could
exchange the sources of current packages coming from those domains and
use this in their source.

If that's okay, I will prepare patches accordingly, it's trivial.