| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_DESTDIR=debian/aspell-el |
| 4 |
DICT_LANG=el |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
override_dh_auto_configure: |
| 10 |
|
| 11 |
override_dh_auto_build: |
| 12 |
|
| 13 |
execute_after_dh_auto_install: |
| 14 |
for f in *.cwl; do \ |
| 15 |
gzip -9 -c "$$f" > "$(DEB_DESTDIR)/usr/share/aspell/"$$f".gz"; \ |
| 16 |
WL=`echo $$f | sed 's/\.cwl$$//'`; \ |
| 17 |
touch "$(DEB_DESTDIR)/var/lib/aspell/$$WL.rws"; \ |
| 18 |
dh_link "var/lib/aspell/$$WL.rws" "usr/lib/aspell/$$WL.rws"; \ |
| 19 |
echo "$$WL" >> "$(DEB_DESTDIR)/usr/share/aspell/$(DICT_LANG).contents"; \ |
| 20 |
done |
| 21 |
|
| 22 |
touch $(DEB_DESTDIR)/var/lib/aspell/$(DICT_LANG).compat |
| 23 |
|
| 24 |
installdeb-aspell |
| 25 |
|
| 26 |
override_dh_md5sums: |
| 27 |
dh_md5sums -Xvar/lib/aspell |