version=4
# debian/watch
#
# Upstream repo:
#   https://github.com/ralph-irving/squeezelite
#
# To update to the latest upstream, run debian/get-upstream-tarball.sh from the
# root of the project, then run `uscan --verbose` and proceed as normal.
# 
# The versions is built from strings in 
# https://github.com/ralph-irving/squeezelite/blob/master/squeezelite.h
#
# VERSION=$(curl -s https://raw.githubusercontent.com/ralph-irving/squeezelite/master/squeezelite.h | grep -E '^#define M...._VERSION' | cut -f3 -d' ' | tr -d '"' | awk '/2.0/{getline x2; getline x3; line=$0 "." x2 "-" x3;print line}')
#
# To update to something other than the latest, you can create the
# orig.tar.gz using `git archive` against the upstream repo - for example:
#
#   git archive --format=tgz --prefix=squeezelite-1.9.9-1414+git20221121.dbe69eb/ --output=../squeezelite_1.9.9-1414+git20221121.dbe69eb.orig.tar.gz dbe69eb8aa88f644cfb46541d6cef72fa666570d

opts="mode=git,pgpmode=none,pretty=2.0.0-1541+git%cd.%h" \
    https://github.com/ralph-irving/squeezelite HEAD debian
