debian swirl logo

Back to the packages list aspell-hr

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

DICT_LANG := hr

install/aspell-$(DICT_LANG)::
		for f in *.cwl; do \
		    gzip -9 -c "$$f" > "$(DEB_DESTDIR)/usr/share/aspell/"$$f".gz"; \
	    WL= `echo $$f | sed 's/\.cwl$$//'`; \
		    touch "$(DEB_DESTDIR)/var/lib/aspell/$$WL.rws"; \
		    dh_link "var/lib/aspell/$$WL.rws" "usr/lib/aspell/$$WL.rws"; \
		    echo "$$WL" >> "$(DEB_DESTDIR)/usr/share/aspell/$(DICT_LANG).contents"; \
		done

		touch $(DEB_DESTDIR)/var/lib/aspell/$(DICT_LANG).compat
		cp $(CURDIR)/doc/hr_HR.aff $(DEB_DESTDIR)/usr/lib/aspell/hr_affix.dat
		installdeb-aspell

Builds:

aspell-hr
the croatian dictionary for gnu aspell