| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | %: |
| 4 | dh $@ |
| 5 | |
| 6 | execute_before_dh_auto_build: |
| 7 | # Make a copy of the dictionary files. |
| 8 | cp bo.aff bo-copy.aff |
| 9 | cp bo.dic bo-copy.dic |
| 10 | |
| 11 | # Remove any instances of IGNORE from bo-copy.aff, as these are not |
| 12 | # supported by .bdic. <https://bugreports.qt.io/browse/QTBUG-107600> |
| 13 | sed -i '/IGNORE/d' bo-copy.aff |
| 14 | |
| 15 | # Compile the .bdic binary dictionary. |
| 16 | convert-bdic bo-copy.dic bo.bdic |
| 17 | |
| 18 | # Remove the copies of the dictionary files. |
| 19 | rm bo-copy.aff |
| 20 | rm bo-copy.dic |
| 21 | |
| 22 | execute_after_dh_auto_install: |
| 23 | # Install the info-hunspell file. |
| 24 | installdeb-hunspell |