File: rules

package info (click to toggle)
fonts-roboto-fontface 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 14,856 kB
  • sloc: makefile: 17; sh: 13
file content (25 lines) | stat: -rwxr-xr-x 865 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
20
21
22
23
24
25
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/choffmeister/roboto-fontface-bower.git
-include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@

override_dh_install:
	dh_install

	# Make a symlink of all fonts in /usr/share/fonts-roboto-fontface/fonts
	# and fix the x flag

	for k in roboto roboto-condensed ; do \
		mkdir -p debian/fonts-roboto-fontface/usr/share/fonts-roboto-fontface/fonts/$$k ; \
		for i in truetype eot svg woff ; do \
			chmod -x debian/fonts-roboto-fontface/usr/share/fonts/$$i/roboto-fontface/$$k/* ; \
			for j in `find debian/fonts-roboto-fontface/usr/share/fonts/$$i/roboto-fontface/$$k -type f` ; do \
				FNTFILE=`basename $$j` ; \
				ln -s ../../../fonts/$$i/roboto-fontface/$$k/$$FNTFILE debian/fonts-roboto-fontface/usr/share/fonts-roboto-fontface/fonts/$$k/$$FNTFILE ; \
				echo $$j ; \
			done ; \
		done ; \
	done