Portfile: fetching/verifying a single file

Eric F (iEFdev) eric at iefdev.se
Sat Aug 29 02:52:59 UTC 2020


Hi,

When downloading/fetching a single (script) file from a Git repo. If I use:

```
fetch {
    file mkdir ${worksrcpath}
    system -W ${worksrcpath} "curl -qs ${master_sites}/${_file} -o ${distpath}/${distname}"
}

post-checksum {
    copy ${distpath}/${distname} ${worksrcpath}
}
```

That works, and I can verify against the checksums, etc. But is that an ok method? …or is there a better &/or preferred way?

· Eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200829/e57dea50/attachment.htm>


More information about the macports-dev mailing list