[SCM] ardour3/master-a4: Add get-orig-source.
mira-guest at users.alioth.debian.org
mira-guest at users.alioth.debian.org
Thu Apr 23 13:03:24 UTC 2015
The following commit has been merged in the master-a4 branch:
commit a7335d52eb8f64a62932a599267330dbd4949abb
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date: Thu Apr 23 15:04:57 2015 +0200
Add get-orig-source.
diff --git a/debian/rules b/debian/rules
index 69ed81a..1826796 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,12 @@
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
+# 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 = dfsg1
+PKG = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+
-include /usr/share/cdbs/1/rules/upstream-tarball.mk
-include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
@@ -143,3 +149,19 @@ CDBS_PROVIDES_ardour-i686 = ardour
ifeq (Ubuntu,$(shell dpkg-vendor --query Vendor))
CDBS_RECOMMENDS_ALL = firefox | www-browser
endif
+
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=.
+ tar -xf $(PKG)_$(UPSTREAM_VERSION).orig.tar.gz
+ mv ardour-$(UPSTREAM_VERSION) $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/waf
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/.git
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/.gitignore
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/MSVCvst_scan
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/MSVCardour3
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/icons/win32/resource
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)/icons/win32/msvc_resources.rc.in
+ XZ_OPT=-9 tar cJf ../$(PKG)_$(UPSTREAM_VERSION)~$(DFSG).orig.tar.xz $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)
+ rm -rf $(PKG)-$(UPSTREAM_VERSION)~$(DFSG)
+ rm -rf $(PKG)_$(UPSTREAM_VERSION).orig.tar.gz
+
--
ardour3 packaging
More information about the pkg-multimedia-commits
mailing list