File: rules

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

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 $@