File: rules

package info (click to toggle)
python-srt 3.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 1,599; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME = srt

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	rm $(CURDIR)/debian/python3-srt/usr/bin/srt
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	cd docs && sphinx-build -b html . $(CURDIR)/debian/python-srt-doc/usr/share/doc/python-srt-doc/html
endif

execute_before_dh_installman:
	set -e; export PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(CURDIR); for n in srt_tools/srt-*; do \
		help2man -N -n "SRT subtitle processing tool" --version-string="$(DEB_VERSION_UPSTREAM)" "python3 $$n" > debian/$${n##*/}.1; \
	done