[mate-icon-theme-faenza] 01/07: Repack upstream sources. Drop non-free files from src:package and bin:package. (Closes: #760676).
Mike Gabriel
sunweaver at debian.org
Tue Jan 6 05:20:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository mate-icon-theme-faenza.
commit 9d6ab7ad67b04daeeb044783dde79d4ed9cdfc09
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Mon Jan 5 15:27:58 2015 +0100
Repack upstream sources. Drop non-free files from src:package and bin:package. (Closes: #760676).
---
debian/rules | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index f11a0b4..bf2d132 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,12 @@
#!/usr/bin/make -f
+NULL =
+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))
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/utils.mk
@@ -13,5 +20,28 @@ DEB_CONFIGURE_SCRIPT := ./autogen.sh
install/mate-icon-theme-faenza::
find debian/mate-icon-theme-faenza/usr/share/icons/matefaenza/ -type f | while read file; do chmod a-x "$$file"; done
-get-orig-source:
- uscan --noconf --force-download --rename --download-current-version --destdir=..
+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 \
+ matefaenza/*/*/*flash* \
+ matefaenza/*/*/*pdf* \
+ matefaenza/*/*/*alien-arena* \
+ matefaenza/*/*/*ccc_large* \
+ matefaenza/*/*/*picasa* \
+ $(NULL)
+ $(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)"
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-icon-theme-faenza.git
More information about the pkg-mate-commits
mailing list