[SCM] eq10q/master: Add get-orig-source for repacking.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Sun Mar 22 18:45:51 UTC 2015


The following commit has been merged in the master branch:
commit cb76745da78ed8a76ba49a392ac421401fe34bd9
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Sun Mar 22 19:44:10 2015 +0100

    Add get-orig-source for repacking.

diff --git a/debian/rules b/debian/rules
index 95c5f01..c8893e9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,11 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+# Path to the debian directory
+DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
+UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
+DFSG = repack0
+
 LDFLAGS+=-Wl,--as-needed
 
 %:
@@ -8,3 +13,15 @@ LDFLAGS+=-Wl,--as-needed
 
 override_dh_installchangelogs:
 	dh_installchangelogs README
+
+get-orig-source:
+	cd $(DEBIAN_DIR)/.. && uscan --force-download
+	tar xf ../eq10q-$(UPSTREAM_VERSION).tar.gz
+	rm ../eq10q-$(UPSTREAM_VERSION).tar.gz \
+	../eq10q_$(UPSTREAM_VERSION).orig.tar.gz
+	mv eq10q-$(UPSTREAM_VERSION) eq10q-$(UPSTREAM_VERSION)~$(DFSG)
+	tar cf ../eq10q_$(UPSTREAM_VERSION)~$(DFSG).orig.tar \
+	--exclude=.kdev4 eq10q-$(UPSTREAM_VERSION)~$(DFSG) \
+	--exclude-vcs
+	gzip -9fn ../eq10q_$(UPSTREAM_VERSION)~$(DFSG).orig.tar
+	rm -r eq10q-$(UPSTREAM_VERSION)~$(DFSG)

-- 
eq10q packaging



More information about the pkg-multimedia-commits mailing list