[SCM] mate-applets Debian package branch, master, updated. 5a2d42605459480377728454614cba7998cfd7aa
Mike Gabriel
sunweaver at moszumanska.debian.org
Fri Apr 18 19:09:04 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-mate/mate-applets.git;a=commitdiff;h=5a2d426
The following commit has been merged in the master branch:
commit 5a2d42605459480377728454614cba7998cfd7aa
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Apr 18 21:08:58 2014 +0200
debian/rules: repack upstream tarball and drop Gnu FDL licensed docs/ folders.
---
debian/changelog | 2 +-
debian/rules | 30 +++++++++++++++++++++++++++---
2 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 23791df..2dde2a2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-mate-applets (1.6.2-1) UNRELEASED; urgency=low
+mate-applets (1.8.0+dfsg1-1) UNRELEASED; urgency=low
* Initial release. (Closes: #734888).
diff --git a/debian/rules b/debian/rules
index b0d9917..02651da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
#!/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))
+
include /usr/share/cdbs/1/rules/debhelper.mk
-#include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
DEB_DH_INSTALL_ARGS += --list-missing
@@ -22,5 +27,24 @@ binary-install/mate-applets::
rm -rfv debian/*/usr/lib/python*/dist-packages/timerapplet/*.pyc
rm -rfv debian/*/usr/lib/python*/dist-packages/timerapplet/*.pyo
-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) \
+ && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p
' \
+ && $(RM) -r -v \
+ */docs/
+ $(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
--
mate-applets Debian package
More information about the pkg-mate-commits
mailing list