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

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Wed Nov 4 04:57:59 UTC 2015


The following commit has been merged in the master branch:
commit e80559959a20adcbccabd0e727cf2094d5792cf8
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Wed Nov 4 05:52:56 2015 +0100

    Introduce get-orig-source.

diff --git a/debian/rules b/debian/rules
index 6c3438a..03c5a92 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,25 @@
 export OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
 export PREFIX=/usr
 
+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)~dfsg0
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
 %:
 	dh $@
 
 override_dh_auto_clean:
 	rm -rf get-orig-source
 	dh_auto_clean
+
+# get-orig-source to drop upstream .gitignore file
+get-orig-source:
+	git  clone  git://github.com/swh/lv2 swh-lv2
+	rm -fR $(pkg)/.git
+	rm -fR $(pkg)/.gitignore
+	rm -fR $(pkg)/util/gsm
+	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-lv2 packaging



More information about the pkg-multimedia-commits mailing list