#!/usr/bin/make -f
export PYBUILD_NAME=pysam

DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
TESTPKG    := $(DEBPKGNAME)-tests

HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
export HTSLIB_INCLUDE_DIR=/usr/include

# DEB_BUILD_OPTIONS := nocheck

%:
	LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_install:
	dh_install -Xtest.gtf.gz

override_dh_auto_test:
#nothing to test until pysam is installed.
#test package is provided for both Python versions

get-orig-source:
	uscan --verbose --force-download --repack --compression xz
