5
5
# rules file for Debian package tipa
11
include /usr/share/dpatch/dpatch.make
8
13
debdir := $(shell pwd)/debian
9
debtmp := $(debdir)/tmp
14
debtmp := $(debdir)/tipa
15
debetc := $(debdir)/etc
10
16
debtexmf := $(debtmp)/usr/share/texmf
11
debxfnt := $(debtmp)/usr/X11R6/lib/X11/fonts
18
debxfnt := $(shell pwd)/debian/xfonts-tipa/usr/share/fonts/X11
12
19
debxt1 := $(debxfnt)/Type1
13
20
debxenc := $(debxfnt)/encodings
14
debetc := $(debtmp)/etc
15
debupdm := $(debetc)/texmf/updmap.d
16
debscdir := $(debetc)/X11/fonts/Type1
21
debscdir := $(shell pwd)/debian/xfonts-tipa/etc/X11/fonts/X11R7/Type1
24
$(shell perl -ne '/([\d.]+)-/; print $$1; exit' < debian/changelog)
25
ORIG_TARBALL = tipa_$(UPSTREAM_VERSION).orig.tar.gz
26
UPSTREAM_DIR = tipa-$(UPSTREAM_VERSION)
28
get-orig-source: $(ORIG_TARBALL)
32
wget ftp://tug.ctan.org/pub/tex-archive/fonts/tipa.zip ; \
34
mv tipa/$(UPSTREAM_DIR) . ; \
35
mv tipa/tipaface.pdf $(UPSTREAM_DIR)/doc ; \
36
tar cfz $(ORIG_TARBALL) $(UPSTREAM_DIR) ; \
37
rm -rf tipa.zip tipa $(UPSTREAM_DIR) )
38
mv $(TMPDIR)/$(ORIG_TARBALL) .
18
40
# The following pattern rules is necessary for building the TIPA
19
41
# documentation and the example
75
dh_installdirs --package=xfonts-tipa \
76
usr/share/fonts/X11/Type1 \
77
usr/share/fonts/X11/encodings \
78
etc/X11/fonts/X11R7/Type1
55
$(MAKE) install PREFIX=$(debtexmf) MAPDIR=$(debetc)/texmf/dvips
80
$(MAKE) install PREFIX=$(debtexmf) MAPDIR=$(debtexmf)/fonts/map/dvips
56
81
# Fixes bug reported by lintian
57
82
chmod +x $(debtexmf)/fonts/source/fkr/tipa/*.sh
58
83
cp 00README changelog
59
( cd $(debdir) ; uudecode tipaface.pdf.uu )
61
85
dh_installdefoma -p xfonts-tipa
63
87
perl debian/gen-fonts-dir.pl \
64
../../../../../share/texmf/fonts/type1/fkr/tipa \
88
../../../texmf/fonts/type1/fkr/tipa \
66
90
$(debscdir)/xfonts-tipa.scale \
67
91
debian/xfonts-tipa.defoma-hints
68
92
install --mode=644 debian/silipa.enc $(debxenc)
70
install --mode=644 debian/tipa.updmap $(debupdm)/10tipa.cfg
73
# dh_movefiles does not remove empty empty dirs. Grrr....
74
rmdir --ignore-fail-on-non-empty --parents \
75
$(debxt1) $(debxenc) $(debscdir) $(debupdm)
94
#install --mode=644 debian/tipa.updmap $(debupdm)/10tipa.cfg
95
dh_installtex -p tipa map=MixedMap,tipa.map
77
97
dh_installxfonts -p xfonts-tipa