| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#Â Debhelper magic rule |
| 4 |
%: |
| 5 |
dh $@ |
| 6 |
|
| 7 |
WORDLISTS:= var/lib/dictionaries-common/wordlist/wirish usr/share/dict/irish |
| 8 |
|
| 9 |
override_dh_auto_build: |
| 10 |
cp debian/language-file debian/iirish.info-ispell |
| 11 |
cp debian/language-file debian/wirish.info-wordlist |
| 12 |
dh_auto_build |
| 13 |
|
| 14 |
override_dh_auto_clean: |
| 15 |
rm -f debian/iirish.info-ispell debian/wirish.info-wordlist |
| 16 |
$(MAKE) reallyclean |
| 17 |
dh_auto_clean |
| 18 |
|
| 19 |
override_dh_auto_install: |
| 20 |
$(MAKE) install DESTDIR=$(CURDIR)/debian/iirish |
| 21 |
$(MAKE) install-words DESTDIR=$(CURDIR)/debian/wirish |
| 22 |
$(MAKE) install-myspell DESTDIR=$(CURDIR)/debian/myspell-ga |
| 23 |
# For debian bug #541923 |
| 24 |
mkdir -p debian/myspell-ga/usr/share/hunspell |
| 25 |
mv debian/myspell-ga/usr/share/myspell/dicts/* debian/myspell-ga/usr/share/hunspell |
| 26 |
installdeb-wordlist -p wirish # calls internally dh_installdebconf |
| 27 |
# Should be UTF8 |
| 28 |
for f in $(WORDLISTS) ; do \ |
| 29 |
iconv --from-code=ISO-8859-1 --to-code=UTF8 debian/wirish/$$f > x ; \ |
| 30 |
mv x debian/wirish/$$f ; \ |
| 31 |
done |
| 32 |
dh_installman -p wirish wirish/irish.5 |
| 33 |
dh_auto_install |