[mate-desktop] 16/49: debian/rules: Package is not non-DFSG anymore, simply download tarball from upstream Git via get-orig-source rule.
Mike Gabriel
sunweaver at debian.org
Wed Aug 19 21:58:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository mate-desktop.
commit 0a0da8acd7a8bf840324cb1148cfc62d7e554587
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Jun 13 01:18:38 2015 +0200
debian/rules: Package is not non-DFSG anymore, simply download tarball from upstream Git via get-orig-source rule.
---
debian/rules | 29 ++---------------------------
1 file changed, 2 insertions(+), 27 deletions(-)
diff --git a/debian/rules b/debian/rules
index e225196..817099a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,5 @@
#!/usr/bin/make -f
-PKD = $(word 1,$(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 = +dfsg1
-VER ?= $(subst $(DTYPE),,$(UVER))
-
DHFLAGS=--parallel
%:
@@ -34,24 +28,5 @@ override_dh_strip:
dh_strip -pmate-desktop --dbg-package=mate-desktop-dbg
dh_strip -plibmate-desktop-2-17 --dbg-package=libmate-desktop-2-17-dbg
-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)
- $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
- @echo "# Extracting..."
- mkdir $(PKG)-$(VER) \
- && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
- || $(RM) -r $(PKG)-$(VER)
- @echo "# Cleaning-up..."
- cd $(PKG)-$(VER) \
- && $(RM) -r -v \
- desktop-docs \
- user-guide
- $(RM) -v $(PKG)_$(VER).orig.tar.*
- @echo "# Packing..."
- find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
- | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
- && $(RM) -r "$(PKG)-$(VER)"
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=..
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-desktop.git
More information about the pkg-mate-commits
mailing list