File: rules

package info (click to toggle)
ispell-lt 1.2.1-8
  • links: PTS
  • area: main
  • in suites: buster
  • size: 4,508 kB
  • ctags: 105
  • sloc: perl: 4,442; python: 436; makefile: 116; sh: 9
file content (40 lines) | stat: -rwxr-xr-x 1,003 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_build:
	mkdir -p debian/tmpdir/usr/lib/locale
	localedef -i "lt_LT" -f "ISO-8859-13" "debian/tmpdir/usr/lib/locale/lt_LT.ISO-8859-13"
	# Using the locale
	(export LOCPATH=debian/tmpdir/usr/lib/locale; export LC_ALL=lt_LT.ISO-8859-13; $(MAKE) myspell)

	gzip -cn9 lietuviu.dict > lietuviu.mwl.gz
	cp lietuviu.dict lt.wl
	prezip lt.wl
	gzip -n9 lt.cwl

	$(MAKE) aspell

override_dh_clean:
	dh_clean
	rm -f lietuviu.mwl.gz
	rm -rf debian/tmpdir
	rm -f lt.cwl.gz

override_dh_auto_install:
override_dh_install:
	dh_install

	install -m 644 lietuviu.mwl.gz $(CURDIR)/debian/ilithuanian/usr/share/ispell
	install -m 644 lt_LT.aff $(CURDIR)/debian/aspell-lt/usr/lib/aspell/lt_affix.dat
	installdeb-ispell -pilithuanian
	installdeb-aspell -paspell-lt
	dh_installdebconf -paspell-lt

override_dh_installchangelogs:
	dh_installchangelogs -i -X ChangeLog
	dh_installchangelogs -paspell-lt ChangeLog
	dh_installchangelogs -pilithuanian ChangeLog