version=4
# Upstream releases on SourceForge keep the version only in the directory name
# ("Pachi el marciano <ver>"); every file name is static (pachi_source.tgz).
# Scrape the files page, take the version from the release sub-directory, then
# rewrite the matched URL to the actual source tarball.
opts="downloadurlmangle=s@(.*/Pachi%20el%20marciano%20[\d.]+)/.*@$1/pachi_source.tgz/download@,\
filenamemangle=s@.*/Pachi%20el%20marciano%20([\d.]+)/.*@pachi-$1.tgz@" \
https://sourceforge.net/projects/dragontech/files/Pachi%20el%20marciano/ \
Pachi%20el%20marciano%20([\d.]+)/
