File: rules

package info (click to toggle)
myspell-lv 0.9.6-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,548 kB
  • sloc: makefile: 19
file content (40 lines) | stat: -rwxr-xr-x 1,164 bytes parent folder | download | duplicates (3)
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
# [debian/rules] for myspell-lv
#
# COPYRIGHT © 2007-2011 Martin-Éric Racine <martin-eric.racine@iki.fi>
#
# LICENSE
# This package is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License or (at
# your option) any later version.
#
%:
	dh $@

DEB_INSTALL_CHANGELOGS_ALL := Changelog.txt
ILANGUAGE=latvian
LANG_COUNTRY=lv_LV
DICT_LANG=lv

override_dh_auto_build:
	## Keep upstream myspell dictionary as-is.
	## Generate aspell dictionary.
	# build-depends on aspell because of prezip.
	cp $(LANG_COUNTRY).aff $(DICT_LANG)_affix.dat
	cat $(LANG_COUNTRY).dic | \
		sed 1d | \
		LC_ALL=C grep -v -e '\./=' -e '(3)' -e '(2)' | \
		prezip > $(DICT_LANG).cwl
	gzip -n $(DICT_LANG).cwl
	echo "add $(DICT_LANG).rws" > $(DICT_LANG).multi
	echo "add $(DICT_LANG).multi" > $(ILANGUAGE).alias

override_dh_auto_clean:
	# Clean myspell files (nothing to clean).
	# Clean aspell files.
	rm -f *.alias *_affix.dat *.compat *.multi *.rws *.*wl*

override_dh_auto_install:
	installdeb-aspell --package=aspell-$(DICT_LANG)
#EOF