[ITP] par2

Yaakov Selkowitz yselkowitz@cygwin.com
Fri Sep 25 21:56:00 GMT 2015


On Fri, 2015-09-25 at 17:10 -0400, Andrew Schulman wrote:
> I want to package par2 for Cygwin.  par2 is the well-known file verification and
> repair tool, using Reed-Solomon encoding.  It builds OOTB in Cygwin.
> 
> par2.cygport:
> 
> NAME=par2
> VERSION=0.6.14
> RELEASE=1
> SUMMARY="File verification and repair tool"
> DESCRIPTION="par2 is a program for creating and using PAR2 files to detect
> damage in data files and repair them if necessary. It can be used with any kind
> of file."
> CATEGORY="Archive"
> HOMEPAGE="https://github.com/Parchive/par2cmdline"

For future reference, instead of this:

> GIT_URI="https://github.com/Parchive/par2cmdline.git"
> GIT_TAG=v0.6.14
> inherit git

Just do this:

SRC_URI="https://github.com/Parchive/par2cmdline/archive/v${VERSION}/par2cmdline-v${VERSION}.tar.gz"

The same goes for retrieving any other tag in GitHub in the form:

https://github.com/PROJECT/REPO/archive/TAG/REPO-TAG.tar.gz

No need to respin though.  GTG.

--
Yaakov




More information about the Cygwin-apps mailing list