#!/bin/bash

curl -Ss 'https://www.x.org/archive/individual/app/' | \
  tr '"' '\n' | \
  sed -n '
    s/^xcalc-\(.*\)\.tar\.bz2$/\1/
    T
    p
  ' | \
  sort -V | \
  tail -n1