File: rules

package info (click to toggle)
aspell-hi 0.02-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 732 kB
  • sloc: sh: 61; makefile: 24
file content (35 lines) | stat: -rwxr-xr-x 814 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
31
32
33
34
35
#!/usr/bin/make -f

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

BASEDIR=`pwd`/debian/aspell-hi
DICTLANG='hi'

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 -n "$$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/hi.compat"
	installdeb-aspell

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

%:
	dh $@