| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export PYBUILD_NAME=dodgy |
| 5 |
|
| 6 |
VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1) |
| 7 |
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -) |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with python3 --buildsystem=pybuild |
| 11 |
|
| 12 |
override_dh_installdocs: |
| 13 |
pandoc -t plain -o .pybuild/README README.md |
| 14 |
dh_installdocs .pybuild/README |
| 15 |
|
| 16 |
override_dh_installman: |
| 17 |
txt2man -s 1 -v "dodgy" -t "dodgy" -r "$(VERSION)" -d "$(DEBDATE)" debian/dodgy.txt > .pybuild/dodgy.1 |
| 18 |
dh_installman .pybuild/dodgy.1 |