File: rules

package info (click to toggle)
aspell-kn 0.01-2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 808 kB
  • ctags: 2
  • sloc: sh: 61; makefile: 23
file content (30 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
BASEDIR=`pwd`/debian/aspell-kn
DICT_LANG=kn

override_dh_auto_configure:
	./configure

override_dh_md5sums:
		dh_md5sums -Xvar/lib/aspell

override_dh_install:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install
	for f in *.cwl; do \
		gzip -9 -c "$$f" > "$(BASEDIR)/usr/share/aspell/"$$f".gz"; \
		WL=`echo "$$f" | sed 's/\.cwl$$//'`; \
		touch "$(BASEDIR)/var/lib/aspell/$$WL.rws"; \
		dh_link "var/lib/aspell/$$WL.rws" "usr/lib/aspell/$$WL.rws"; \
		echo "$$WL" >> "$(BASEDIR)/usr/share/aspell/$(DICT_LANG).contents"; \
	done
	touch $(BASEDIR)/var/lib/aspell/$(DICT_LANG).compat
	installdeb-aspell
%:
	dh $@