[med-svn] [python-pysam] 08/10: Use pre-defined variables from dpkg rather than manually scraping changelog

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Nov 12 09:09:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

afif-guest pushed a commit to branch master
in repository python-pysam.

commit 29b08229702a40d7e83c586d49ff7e313c0e0242
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Nov 11 23:22:22 2015 -0800

    Use pre-defined variables from dpkg rather than manually scraping changelog
---
 debian/rules | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 9b8d539..d3ac32d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,12 @@
 #!/usr/bin/make -f
+
+include /usr/share/dpkg/default.mk
+
 export PYBUILD_NAME=pysam
 
-DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-TESTPKG    := $(DEBPKGNAME)-tests
+TESTPKG    := $(DEB_SOURCE)-tests
 
-HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+HTSLIBDIR  := /usr/lib/$(DEB_HOST_MULTIARCH)
 export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
 export HTSLIB_INCLUDE_DIR=/usr/include
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list