File: rules

package info (click to toggle)
pytermgui 7.7.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,888 kB
  • sloc: python: 12,931; makefile: 40; sh: 37
file content (23 lines) | stat: -rwxr-xr-x 729 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
#!/usr/bin/make -f

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)

export PYBUILD_NAME=pytermgui

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

execute_after_dh_install:
	dh_auto_install
	mkdir -p debian/pytermgui/usr/bin
	mv debian/python3-pytermgui/usr/bin/ptg debian/pytermgui/usr/bin/
	rm -rf debian/python3-pytermgui/usr/lib/python*/dist-packages/*.md
	rm -rf debian/python3-pytermgui/usr/lib/python*/dist-packages/examples/

override_dh_installdocs:
	dh_installdocs -A README.md

execute_before_dh_installman:
	txt2man -s 1 -v "pytermgui" -t "pytermgui" \
	-r "$(VERSION)" -d "$(DEBDATE)" debian/manpage/ptg.txt > debian/manpage/ptg.1