From: Afif Elghraoui Date: Thu, 12 Nov 2015 07:22:22 +0000 (-0800) Subject: Use pre-defined variables from dpkg rather than manually scraping changelog X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~264 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=29b08229702a40d7e83c586d49ff7e313c0e0242;p=python-pysam.git Use pre-defined variables from dpkg rather than manually scraping changelog --- 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