File: rules

package info (click to toggle)
xlsx2csv 1:0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 664 kB
  • sloc: python: 1,042; makefile: 29; sh: 10
file content (34 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export PODDATE = "$(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" +%Y-%m-%d)"

override_dh_installman:
	cd man && $(MAKE) -f pod2man.mk \
	PODDATE="$(PODDATE)" \
	PACKAGE=$(DEB_SOURCE) \
	makeman
	dh_installman

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	#locale -a
	#locale
	env LC_LANG="C.UTF-8" python3 ./test/run
endif

override_dh_auto_install:
	install -m 755 -D xlsx2csv.py \
		$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/$(DEB_SOURCE)

override_dh_clean:
	dh_clean
	rm -rf scripts

override_dh_installexamples:
	dh_installexamples
	find debian -name run -exec sed -i 's#\["py.*\./xlsx2csv.py"\]#["xlsx2csv"]#' \{\} \;

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