File: watch

package info (click to toggle)
cpanminus 1.7048-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,372 kB
  • sloc: perl: 14,713; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
version=4

# Search on MetaCPAN for current stable release, download tarball from
# Github (with a sane name).
# Rationale: Github also contains beta versions with higher numbers.
# CPAN versions are fatpacked (whitespace-compression) which makes them not
# the "original source" (See #851506)

opts="downloadurlmangle=s%.*/App-cpanminus-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$%https://github.com/miyagawa/cpanminus/archive/$1.tar.gz%, \
      filenamemangle=s%(?:.*?)?v?(\d[\d.-]+)\.tar\.gz%cpanminus-$1.tar.gz%" \
      https://metacpan.org/release/App-cpanminus   .*/App-cpanminus-v?@ANY_VERSION@@ARCHIVE_EXT@$