File: rules

package info (click to toggle)
nototools 0.2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, trixie
  • size: 10,940 kB
  • sloc: python: 26,065; xml: 653; sh: 222; javascript: 217; ansic: 127; makefile: 84
file content (24 lines) | stat: -rwxr-xr-x 766 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
#!/usr/bin/make -f

export PYBUILD_NAME=nototools

%:
	dh $@ --buildsystem=pybuild

# Keep one script needed for fonts-noto-color-emoji
# but rename it to drop the .py extension (Debian Policy ยง10.4)
# Beware installing other scripts to PATH because some like scale
# are too generic.
# create_image needs python3-cairo
# /usr/bin/notodiff requires python3-booleanoperations
execute_before_dh_install:
	mv debian/python3-nototools/usr/bin/add_vs_cmap.py \
	   debian/python3-nototools/usr/bin/add_vs_cmap
	rm debian/python3-nototools/usr/bin/*.py
	rm debian/python3-nototools/usr/bin/notocoverage
	rm debian/python3-nototools/usr/bin/notodiff

execute_after_dh_auto_clean:
	rm -rf notofonttools*.egg-info
	# https://bugs.debian.org/973061
	rm nototools/_version.py