[SCM] showq/master: Introduce get-orig-source.
mira-guest at users.alioth.debian.org
mira-guest at users.alioth.debian.org
Tue Nov 3 10:27:36 UTC 2015
The following commit has been merged in the master branch:
commit cf7b18c3967d5eae2eef165309b126b9e34d249d
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date: Tue Nov 3 11:03:24 2015 +0100
Introduce get-orig-source.
diff --git a/debian/rules b/debian/rules
index ab7b768..52e95ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,11 @@
#!/usr/bin/make -f
# -*- makefile -*-
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
+dfsg_version = $(upstream_version)~dfsg0
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+git_date= $(shell date +%Y%m%d)
+
export LINKFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -ldl
WAF = ./waf
@@ -24,3 +29,13 @@ override_dh_auto_install:
override_dh_strip:
dh_strip --dbg-package=showq-dbg
+
+# get-orig-source to drop upstream .gitignore file
+get-orig-source:
+ git clone git://github.com/harryhaaren/showq
+ rm -fR $(pkg)/.git
+ rm -fR $(pkg)/.gitignore
+ tar cf $(pkg)+git$(git_date)_$(dfsg_version).orig.tar $(pkg)
+ xz -zf $(pkg)+git$(git_date)_$(dfsg_version).orig.tar
+ rm -rf $(pkg)
+ mv $(pkg)+git$(git_date)_$(dfsg_version).orig.tar.xz ../$(pkg)+git$(git_date)_$(dfsg_version).orig.tar.xz
--
showq packaging
More information about the pkg-multimedia-commits
mailing list