[Pkg-voip-commits] r5631 - /speex/trunk/debian/rules
maniac-guest at alioth.debian.org
maniac-guest at alioth.debian.org
Mon Apr 28 11:13:58 UTC 2008
Author: maniac-guest
Date: Mon Apr 28 11:13:58 2008
New Revision: 5631
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5631
Log:
Added rule get-orig-source.
Modified:
speex/trunk/debian/rules
Modified: speex/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/speex/trunk/debian/rules?rev=5631&op=diff
==============================================================================
--- speex/trunk/debian/rules (original)
+++ speex/trunk/debian/rules Mon Apr 28 11:13:58 2008
@@ -8,7 +8,14 @@
#export DH_VERBOSE=1
export DH_OPTIONS
+DEBVERSION:=$(shell head -n 1 debian/changelog \
+| sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
+DEB_NOEPOCH_VERSION:=$(shell echo $(DEBVERSION) | cut -d':' -f 2)
+UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//' -e 's/~//')
+FILENAME := speex_$(UPVERSION).orig.tar.gz
+UPFILENAME := speex-$(UPVERSION).tar.gz
+URL := http://downloads.us.xiph.org/releases/speex/$(UPFILENAME)
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
@@ -104,6 +111,16 @@
dh_builddeb -a
+print-version:
+ @@echo "Debian version: $(DEBVERSION)"
+ @@echo "Upstream version: $(UPVERSION)"
+
+get-orig-source:
+ @@dh_testdir
+ @@[ -d ../tarballs/. ]||mkdir ../tarballs
+ @@echo Downloading $(UPFILENAME) from $(URL) ...
+ @@wget -N -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL)
+
.PHONY: clean build build-arch build-indep install install-arch install-indep \
binary binary-arch binary-indep
More information about the Pkg-voip-commits
mailing list