[bamf] 01/05: debian/rules: Add get-orig-source rule.
Mike Gabriel
sunweaver at debian.org
Fri Jun 19 12:15:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository bamf.
commit 6b60af0d67da9f6e282f68b0c96f58e6afcc54b7
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Jun 19 14:10:12 2015 +0200
debian/rules: Add get-orig-source rule.
---
debian/rules | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/debian/rules b/debian/rules
index 3a5e552..fbdd388 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,12 @@
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
+PKD = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DTYPE =
+VER ?= $(subst $(DTYPE),,$(UVER))
+
%:
dh $@ --with autoreconf,gir
@@ -29,3 +35,11 @@ override_dh_strip:
override_dh_girepository:
dh_girepository -pgir1.2-bamf-0.2
+
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+ @
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/bamf.git
More information about the pkg-mate-commits
mailing list