[SCM] gsequencer/master: download upstream signature in debian/rules and rename it with *.asc suffix
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Tue Aug 22 12:32:54 UTC 2017
The following commit has been merged in the master branch:
commit 0fd13210ac00a8b62eda7aa3784ae1e3af1a82ee
Author: Joël Krähemann <jkraehemann-guest at users.alioth.debian.org>
Date: Tue Aug 22 14:31:45 2017 +0200
download upstream signature in debian/rules and rename it with *.asc suffix
diff --git a/debian/rules b/debian/rules
index 2f53650..ffbf833 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,17 @@ endif
archconfflags += --enable-libinstpatch --enable-gtk-doc --enable-gtk-doc-html
+# Gets the name of the source package
+DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+
+# Gets the full version of the source package including debian version
+DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+
+# Gets only the upstream version of the package
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+DEB_UPSTREAM_MINOR_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r 's/([0-9]+).([0-9]+).([0-9]+)/\1.\2.x/')
override_dh_auto_configure:
dh_auto_configure -- $(archconfflags)
@@ -45,6 +56,7 @@ override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
%:
+ wget -O "debian/source/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).tar.gz.asc" -c "http://download.savannah.gnu.org/releases/gsequencer/$(DEB_UPSTREAM_MINOR_VERSION)/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).tar.gz.sig"
dh $@ --with autoreconf
override_dh_clean:
@@ -128,4 +140,5 @@ override_dh_clean:
rm -f docs/reference/libgsequencer/tmpl-build.stamp
rm -f docs/reference/libgsequencer/tmpl.stamp
rm -rf docs/reference/libgsequencer/tmpl/
+ rm -f "debian/source/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).tar.gz.asc"
dh_clean
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list