File: rules

package info (click to toggle)
node-fontsource-inconsolata 5.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: makefile: 19
file content (24 lines) | stat: -rwxr-xr-x 673 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

VERSION = 5.1.1
CHECKOUT = 73c50b3f501c393b11cf5f6415cdc2b3f702be5b
CHECKOUTDIR = fonts/google
FONT = inconsolata

%:
	dh $@

get-orig-source:
	CURDIR=`pwd` && \
	TMPDIR=`mktemp -d /tmp/node-fontsource-$(FONT)-$(VERSION).XXXXXX` && \
	cd $$TMPDIR && \
	git clone https://github.com/fontsource/font-files.git --filter=blob:none --no-checkout --sparse font-files && \
	cd font-files && \
	git sparse-checkout init --cone && \
	git sparse-checkout add $(CHECKOUTDIR)/$(FONT) && \
	git checkout $(CHECKOUT) && \
	cd $(CHECKOUTDIR) && \
	tar -Jcf $$CURDIR/node-fontsource-$(FONT)_$(VERSION).orig.tar.xz $(FONT) && \
	rm -rf $$TMPDIR

.PHONY: get-orig-source