[Pkg-voip-commits] r1996 - portaudio19/trunk/debian
Mikael Magnusson
mikma-guest at costa.debian.org
Sun Jul 2 21:06:01 UTC 2006
Author: mikma-guest
Date: 2006-07-02 21:06:00 +0000 (Sun, 02 Jul 2006)
New Revision: 1996
Modified:
portaudio19/trunk/debian/changelog
portaudio19/trunk/debian/rules
Log:
* Add print-version and get-orig-source targets to rules.
Modified: portaudio19/trunk/debian/changelog
===================================================================
--- portaudio19/trunk/debian/changelog 2006-07-02 20:37:28 UTC (rev 1995)
+++ portaudio19/trunk/debian/changelog 2006-07-02 21:06:00 UTC (rev 1996)
@@ -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 @@
* 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
Modified: portaudio19/trunk/debian/rules
===================================================================
--- portaudio19/trunk/debian/rules 2006-07-02 20:37:28 UTC (rev 1995)
+++ portaudio19/trunk/debian/rules 2006-07-02 21:06:00 UTC (rev 1996)
@@ -25,6 +25,15 @@
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 @@
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
More information about the Pkg-voip-commits
mailing list