version=4
opts=uversionmangle=s/-rc/~rc/ \
  https://github.com/samtools/htslib/releases .*/htslib-(\d\S*)\.tar\.bz2
