debian swirl logo

Back to the packages list aspell-uz

#!/usr/bin/make -f

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

DEB_INSTALL_CHANGELOGS_ALL := doc/ChangeLog
DEB_INSTALL_DOCS_ALL := doc/README-uzbek.wordlist

DICT_LANG := uz

DEB_DH_MD5SUMS_ARGS += -Xvar/lib/aspell

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
	# the following files are necessary for Uzbek dictionary
		cp l-uz.cmap l-uz.cset "$(DEB_DESTDIR)/usr/lib/aspell"
		touch $(DEB_DESTDIR)/var/lib/aspell/$(DICT_LANG).compat

		installdeb-aspell

Builds:

aspell-uz
the uzbek dictionary for gnu aspell