summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 485f51b9dbc8ccada17fe6166f29944687b51198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')

export DH_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_configure:
	pod2man --section=1 --release=$(VERSION) --center "" doc/rapid-photo-downloader.1.pod > rapid-photo-downloader.1

#override_dh_auto_install:
#	dh_auto_install -- --install-lib=/usr/share/rapid-photo-downloader --install-scripts=/usr/share/rapid-photo-downloader

override_dh_auto_clean:
#	-rm rapid-photo-downloader.1
	-rm -rf build/
#	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst