summaryrefslogtreecommitdiff
path: root/manualPorts/python-selectors2/lastVersion.sh
blob: aa0c57fbc4d6734868ddbdb8ce35b4ebacf35059 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

. "${0%/*}/Pkgfile"

curl -Ss "https://pypi.org/project/${name#*-}/#files" \
| sed '
  s@^.*<a href="https://files\.pythonhosted\.org/packages/[0-9a-f]\{2\}/[0-9a-f]\{2\}/[0-9a-f]\{60\}/'"${name#*-}"'-\([^"]\+\)\.tar\.gz">\s*$@\1@
  t
  d
'