watch 857 B

123456789101112131415161718192021222324
  1. # It's a sin to parse html with regex:
  2. # https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
  3. # But currently we've no choice since uscan doesn't support custom downloader.
  4. # Moreover, we use a hack of passing filename as query string.
  5. version=4
  6. opts=\
  7. pgpmode=next,\
  8. pagemangle=s!<a(\s+)href="([^"]*)"[^>]*>(mlucas-[\.\d]+\.tar\.xz)</a>!<a$1href="$2?filename=$3"></a>!g,\
  9. filenamemangle=s/.+\?filename=(.+)/$1/ \
  10. https://notabug.org/alexvong1995/mlucas/releases/ \
  11. .+\?filename=mlucas-([\.\d]+)\.tar\.xz \
  12. debian
  13. opts=\
  14. pgpmode=previous,\
  15. pagemangle=s!<a(\s+)href="([^"]*)"[^>]*>(mlucas-[\.\d]+\.tar\.xz\.asc)</a>!<a$1href="$2?filename=$3"></a>!g,\
  16. filenamemangle=s/.+\?filename=(.+)/$1/ \
  17. https://notabug.org/alexvong1995/mlucas/releases/ \
  18. .+\?filename=mlucas-([\.\d]+)\.tar\.xz\.asc \
  19. previous \
  20. uupdate