1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export PYBUILD_NAME=lz4
%:
dh $@ --parallel --with python2,python3 --buildsystem=pybuild
DPATH := $(abspath $(dir $(MAKEFILE_LIST)))
VER ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog -SVersion | perl -ne 'print $$1 if m{([\d\.]+)}')
.PHONY: get-orig-source
## http://wiki.debian.org/onlyjob/get-orig-source
get-orig-source: $(info I: $(VER))
@echo "# Downloading..."
uscan --noconf --verbose --rename \
--destdir=$(CURDIR) --check-dirname-level=0 \
--force-download --download-version $(VER) $(DPATH) \
--repack --compression xz
|