[SCM] swh-plugins/master: Introduce get-orig-source.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Tue May 31 12:05:51 UTC 2016


The following commit has been merged in the master branch:
commit 26c0da1ebb82f36447b919b70ad4b4c34d81ad7f
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Tue May 31 14:05:28 2016 +0200

    Introduce get-orig-source.

diff --git a/debian/rules b/debian/rules
index 5fe7903..f714def 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,13 @@
 
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
+
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
+git_date= $(shell date +%Y%m%d)
+dfsg_version = $(upstream_version)+git$(git_date)~repack0
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
+
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH		?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
@@ -43,3 +50,13 @@ override_dh_auto_install:
 
 override_dh_installchangelogs:
 	dh_installchangelogs ChangeLog
+
+# get-orig-source to drop upstream .gitignore file
+get-orig-source:
+	git  clone  git://github.com/swh/ladspa swh-plugins
+	rm -fR $(pkg)/.git
+	rm -fR $(pkg)/.gitignore
+	tar cf $(pkg)_$(dfsg_version).orig.tar $(pkg)
+	xz -zf $(pkg)_$(dfsg_version).orig.tar
+	rm -rf $(pkg)
+	mv $(pkg)_$(dfsg_version).orig.tar.xz ../$(pkg)_$(dfsg_version).orig.tar.xz

-- 
swh-plugins packaging



More information about the pkg-multimedia-commits mailing list