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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
#
package=iczech
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
make
(wc -l < czech.a-z; cat czech.a-z) > cs_CZ.mydic
ispellaff2myspell --charset=latin2 --myheader=debian/cs_CZ.myheader czech.aff > cs_CZ.myaff
patch -p0 <debian/patches/cs_CZ.aff.diff
clean:
dh_testdir
dh_testroot
dh_clean
binary-indep: build
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_installchangelogs -i
installdeb-myspell -p myspell-cs
install -d debian/myspell-cs/usr/share/hunspell
install -d debian/myspell-cs/usr/share/myspell/dicts
install -g root -m 644 -o root cs_CZ.myaff debian/myspell-cs/usr/share/hunspell/cs_CZ.aff
install -g root -m 644 -o root cs_CZ.mydic debian/myspell-cs/usr/share/hunspell/cs_CZ.dic
cd debian/myspell-cs/usr/share/hunspell && \
ln -s cs_CZ.aff cs.aff && ln -s cs_CZ.dic cs.dic
cd debian/myspell-cs/usr/share/myspell/dicts && \
ln -s ../../hunspell/cs_CZ.aff cs_CZ.aff; \
ln -s ../../hunspell/cs_CZ.dic cs_CZ.dic; \
ln -s ../../hunspell/cs.aff cs.aff; \
ln -s ../../hunspell/cs.dic cs.dic
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build
dh_testdir -a
dh_testroot -a
dh_installdocs -a
dh_installchangelogs -a
installdeb-ispell -p iczech # This calls internally to dh_installdebconf
dh_installdirs -a
install -d debian/iczech/usr/lib/ispell
install -g root -m 644 -o root czech.aff debian/iczech/usr/lib/ispell/
install -g root -m 644 -o root czech.hash debian/iczech/usr/lib/ispell/
#
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean checkroot
|