#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

BASEDIR=`pwd`/debian/aspell-hi

override_dh_auto_configure:
	./configure

override_dh_md5sums:
	dh_md5sums -Xvar/lib/aspell

override_dh_install:
	gzip -9c hi.cwl > $(BASEDIR)/usr/share/aspell/hi.cwl.gz
	touch $(BASEDIR)/var/lib/aspell/hi.compat
	touch $(BASEDIR)/var/lib/aspell/hi.rws
	dh_installdirs
	installdeb-aspell
	dh_install

	#Remove u-deva.cmap and u-deva.cset as it conflict with libaspell
	rm $(BASEDIR)/usr/lib/aspell/u-deva.*

%:
	dh $@
