git » debian:kxd » commit 3e1d1c0

Update debian/watch to look at the github mirror

author Alberto Bertogli
2017-07-31 21:12:02 UTC
committer Alberto Bertogli
2017-07-31 21:12:02 UTC
parent 180491975a9e29bf58b6e5cfbadbcf8d585bddc2

Update debian/watch to look at the github mirror

Upstream does not publish tarballs anymore, so use the github mirror to
watch and download new releases.

debian/changelog +2 -0
debian/watch +7 -3

diff --git a/debian/changelog b/debian/changelog
index d30be6f..b539667 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ kxd (0.13+git20170730.6182dc8-1) UNRELEASED; urgency=medium
   * Drop Debian patches that are no longer needed
   * Add me as uploader, to keep lintian happy
   * Update the standards version (no changes needed)
+  * Update debian/watch to look at the github mirror for downloading releases
+    (upstream does not publish tarballs anymore)
 
  -- Alberto Bertogli <albertito@blitiri.com.ar>  Sun, 30 Jul 2017 18:19:58 +0100
 
diff --git a/debian/watch b/debian/watch
index 568097a..f91276a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,8 @@
 version=3
-opts="downloadurlmangle=s!/(\d[\d.]+\d)/$!/$1/kxd-$1.tar.bz2!,\
-filenamemangle=s!(\d[\d.]+\d)/!kxd-$1.tar.bz2!" \
-    https://blitiri.com.ar/p/kxd/files/ (\d[\d.]\d+)/
+# Use the github mirror, as upstream does not release tarballs directly.
+# The filenamemangle sed expression converts
+#   from: /albertito/kxd/archive/0.13.tar.gz
+#   to:   kxd-0.13.tar.gz
+opts="filenamemangle=s@.*/(\d[\d\.]*)\.tar\.gz@kxd-$1.tar.gz@" \
+  https://github.com/albertito/kxd/releases \
+  /albertito/kxd/archive/(.+)\.tar\.gz