File: rules

package info (click to toggle)
fonts-rufscript 010-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 276 kB
  • ctags: 4
  • sloc: sh: 39; makefile: 15
file content (18 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
%:
	dh $@

override_dh_builddeb:
	dh_builddeb -- -Zxz -Sextreme -z9

PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
TARBALL = $(PACKAGE)_$(VERSION).orig.tar.gz
get-orig-source:
	rm -rf $@
	wget http://hiran.in/content/fonts/rufscript/Rufscript$(VERSION).ttf \
	-P $@/$(PACKAGE)-$(VERSION).orig
	wget http://hiran.in/content/fonts/rufscript/src/Rufscript$(VERSION).sfd \
	-P $@/$(PACKAGE)-$(VERSION).orig
	GZIP=--best tar czf $(TARBALL) -C $@ $(PACKAGE)-$(VERSION).orig
	rm -rf $@