[mate-control-center-help] 01/03: initial draft for a split-package for non-free help/ files
Mike Gabriel
sunweaver at debian.org
Thu Jun 18 11:29: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-control-center-help.
commit 73de1fab483984aec73f4c87873a52aed7dcf402
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Thu Jun 18 13:07:51 2015 +0200
initial draft for a split-package for non-free help/ files
---
debian/changelog | 6 ++++++
debian/rules | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
debian/watch | 4 ++++
3 files changed, 72 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3aef5b3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+mate-control-center-help (1.10.0+gfdl1-1) UNRELEASED; urgency=medium
+
+ * Initial upload. (Closes: #<ITP>).
+
+ -- Mike Gabriel <sunweaver at debian.org> Thu, 18 Jun 2015 09:20:50 +0200
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..da38a91
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,62 @@
+#!/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 = +gfdl1
+VER ?= $(subst $(DTYPE),,$(UVER))
+
+DHFLAGS=--parallel
+
+%:
+ dh $@ $(DHFLAGS)
+
+override_dh_install:
+ dh_install --fail-missing
+
+override_dh_auto_configure:
+ # upstream tarball is without configure. autogen.sh will create it
+ NOCONFIGURE=1 ./autogen.sh
+ dh_auto_configure $(DHFLAGS)
+
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS
+
+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 \
+ .tx \
+ capplets \
+ ChangeLog \
+ COPYING \
+ font-viewer \
+ libslab \
+ libwindow-settings \
+ man \
+ mate-control-center.convert \
+ org.mate.control-center.gschema.xml.in.in \
+ org.mate.control-center.keybinding.gschema.xml.in.in \
+ po \
+ README \
+ shell \
+ TODO \
+ typing-break \
+ $(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)"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..487ac57
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=dversionmangle=s/\+gfdl1// \
+http://git.mate-desktop.org/mate-control-center/ \
+ snapshot/mate-control-center-(\d\.(?:[0-9]+|)[24680]\.\d)\.tar\.xz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-control-center-help.git
More information about the pkg-mate-commits
mailing list