Trinity Desktop Environment Packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
430B

  1. #!/bin/bash
  2. PKGNAME="${1##*/}"
  3. TDE_VERSION="${2:-${TDE_VERSION:-14.0.5}}"
  4. [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1
  5. TARBALL=$(get_latest_tarball_filename.sh "${PKGNAME}" ${TDE_VERSION})
  6. [ ! -r "${TARBALL}" ] && exit 2
  7. VERSION=${TARBALL##*/}
  8. VERSION=${VERSION#trinity-}
  9. VERSION=${VERSION#${PKGNAME}-}
  10. VERSION=${VERSION#*-}
  11. VERSION=${VERSION%.tar.gz}
  12. VERSION=${VERSION%.tar.bz2}
  13. echo "$VERSION"