File: rules

package info (click to toggle)
r-cran-fontbitstreamvera 0.1.1+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 92 kB
  • sloc: makefile: 35
file content (22 lines) | stat: -rwxr-xr-x 595 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
#!/usr/bin/make -f

DEBFONTNAME=ttf-bitstream-vera
RFONTNAME=bitstream-vera-fonts

%:
	dh $@ --buildsystem R

override_dh_auto_install:
	set -x ; \
	set -e ; \
	tmpdir=`mktemp -d` ; \
	cd $${tmpdir} ; \
	cp -a /usr/share/fonts/truetype/$(DEBFONTNAME)/*.ttf . ; \
	for ttf in *.ttf ; do sfnt2woff $${ttf} ; done ; \
	mv *.woff $(CURDIR)/inst/fonts/$(RFONTNAME) ; \
	cd $(CURDIR) ; \
	rm -rf $${tmpdir}
	# Main install script is called here to fetch *.woff lintian issue for manually installed files
	dh_auto_install
	rm $(CURDIR)/inst/fonts/$(RFONTNAME)/*.woff
	find debian -name LICENCE -delete