File: rules

package info (click to toggle)
hunspell-bo 0.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 156 kB
  • sloc: makefile: 52; xml: 20
file content (24 lines) | stat: -rwxr-xr-x 562 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
#!/usr/bin/make -f

%:
	dh $@

execute_before_dh_auto_build:
	# Make a copy of the dictionary files.
	cp bo.aff bo-copy.aff
	cp bo.dic bo-copy.dic

	# Remove any instances of IGNORE from bo-copy.aff, as these are not
	# supported by .bdic.  <https://bugreports.qt.io/browse/QTBUG-107600>
	sed -i '/IGNORE/d' bo-copy.aff

	# Compile the .bdic binary dictionary.
	convert-bdic bo-copy.dic bo.bdic

	# Remove the copies of the dictionary files.
	rm bo-copy.aff
	rm bo-copy.dic

execute_after_dh_auto_install:
	# Install the info-hunspell file.
	installdeb-hunspell