[Pkg-voip-commits] [portaudio19] 07/114: * Add print-version and get-orig-source targets to rules.
Benjamin Drung
bdrung at moszumanska.debian.org
Sun Dec 25 20:05:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
bdrung pushed a commit to branch master
in repository portaudio19.
commit 7e70934b7e6c765c03547b5b591e17973328b2f5
Author: Mikael Magnusson <mikma at users.sourceforge.net>
Date: Sun Jul 2 21:06:00 2006 +0000
* Add print-version and get-orig-source targets to rules.
---
debian/changelog | 5 +++--
debian/rules | 24 +++++++++++++++++++++++-
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 73d4430..8d90a50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-portaudio19 (19+svn20060612-1) experimental; urgency=low
+portaudio19 (19+svn20060612-1) UNRELEASED; urgency=low
* Initial release. (Closes: #328873: portaudio: please package v19)
* Disable V18 compatibility and bump shlib dependency
@@ -11,8 +11,9 @@ portaudio19 (19+svn20060612-1) experimental; urgency=low
* Removed patches applied by upstream: 40_vpath_libtool and
41_vpath_libtool_gen.
* Fixed path to low_latency_tip.txt, moved by upstream.
+ * Add print-version and get-orig-source targets to rules.
- -- Mikael Magnusson <mikma at users.sourceforge.net> Wed, 14 Jun 2006 16:41:49 +0200
+ -- Mikael Magnusson <mikma at users.sourceforge.net> Sun, 2 Jul 2006 23:00:40 +0200
portaudio19 (19+20041112-3) experimental; urgency=low
diff --git a/debian/rules b/debian/rules
index 90da41b..37e5dec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,15 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
+UPDATE:=$(shell echo $(UPVERSION) | sed -e 's/^.*\+svn//')
+
+FILENAME := portaudio19_$(UPVERSION).orig.tar.gz
+URL := https://www.portaudio.com/repos/portaudio/branches/v19-devel
+SRCDIR := portaudio19-$(UPVERSION).orig
+
autoreconf:
aclocal
autoconf
@@ -88,6 +97,19 @@ binary-arch: build install
dh_md5sums
dh_builddeb
+print-version:
+ @@echo "Debian version: $(DEBVERSION)"
+ @@echo "Upstream version: $(UPVERSION)"
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
+ @@echo Downloading $(FILENAME) from $(URL) ...
+ @@svn export -r{$(UPDATE)} $(URL) ../tarballs/$(SRCDIR)
+ @@echo Building snapshot tarball
+ @@GZIP=-9 tar -b1 -czf ../tarballs/$(FILENAME) -C ../tarballs $(SRCDIR)
+ @@echo Cleaning up
+ @@rm -rf ../tarballs/$(SRCDIR)
binary: binary-arch
-.PHONY: build clean binary-arch binary install patch unpatch config autoreconf
+.PHONY: build clean binary-arch binary install patch unpatch config autoreconf print-version get-orig-source
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/portaudio19.git
More information about the Pkg-voip-commits
mailing list