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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
#!/usr/bin/make -f
export DH_COMPAT=5
export DH_OPTIONS
WOPKG=wfaroese
ISPKG=ifaroese
ASPKG=aspell-fo
MYPKG=myspell-fo
MYDICTDIR=debian/$(MYPKG)/usr/share/myspell/dicts
ISOLANG=fo
build: build-stamp
build-stamp:
dh_testdir
make froyskt.hash
ln -fs froyskt.hash faroese.hash
ln -fs froyskt.aff faroese.aff
# --------- wordlist ------------------
cat words-fo.ispell | ispell -d ./faroese -e | \
tr -s ' ' '\n' | sort | uniq > faroese.words
# --------- ifaroese ------------------
gzip -c words-fo.ispell > faroese.mwl.gz
# --------- aspell-fo -----------------
cp faroese.words fo.wl
prezip fo.wl
gzip fo.cwl
# --------- myspell-fo-fo -------------
ispellaff2myspell --charset=latin1 \
--printcomments \
--myheader=debian/fo_FO.header \
faroese.aff > fo_FO.myaff
( echo `cat words-fo.ispell | wc -l`; cat words-fo.ispell ) > fo_FO.mydict
# -------------------------------------
touch build-stamp
clean:
dh_testdir
dh_testroot
make clean
rm -f froyskt fo.cwl.gz fo.wl faroese.mwl.gz
rm -f faroese.hash faroese.aff faroese.words
rm -f fo_FO.myaff fo_FO.mydict
rm -f build-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# --------- wordlist ------------------
install -m 644 faroese.words debian/wfaroese/usr/share/dict/faroese
installdeb-wordlist -pwfaroese # This calls internally dh_installdebconf
# --------- ifaroese ------------------
install -o root -g root -m 644 faroese.aff debian/ifaroese/usr/lib/ispell
install -o root -g root -m 644 faroese.mwl.gz debian/ifaroese/usr/share/ispell
touch debian/ifaroese/var/lib/ispell/faroese.compat
touch debian/ifaroese/var/lib/ispell/faroese.hash
installdeb-ispell -pifaroese # This calls internally dh_installdebconf
# --------- aspell-fo -----------------
echo "add fo.rws" > debian/aspell-fo/usr/lib/aspell/fo.multi
echo "add fo.multi" > debian/aspell-fo/usr/lib/aspell/faroese.alias
install -o root -g root -m 644 debian/fo.dat \
debian/aspell-fo/usr/lib/aspell/fo.dat
install -o root -g root -m 644 debian/fo_phonet.dat \
debian/aspell-fo/usr/lib/aspell/fo_phonet.dat
install -o root -g root -m 644 fo.cwl.gz \
debian/aspell-fo/usr/share/aspell/fo.cwl.gz
touch debian/aspell-fo/var/lib/aspell/fo.compat
touch debian/aspell-fo/var/lib/aspell/fo.rws
mkdir -p debian/aspell-fo/usr/share/lintian/overrides
install -m 0644 debian/aspell-fo.overrides \
debian/aspell-fo/usr/share/lintian/overrides/aspell-fo
installdeb-aspell -paspell-fo
dh_installdebconf -n -paspell-fo
# --------- myspell-fo-fo -------------
mkdir -p $(MYDICTDIR)
install -m 644 fo_FO.mydict $(MYDICTDIR)/fo_FO.dic
install -m 644 fo_FO.myaff $(MYDICTDIR)/fo_FO.aff
installdeb-myspell -p$(MYPKG)
binary-indep: build install
dh_testdir
dh_testroot
dh_installdirs
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installmenu
dh_installman
dh_compress
dh_fixperms
dh_link
dh_installdeb
dh_gencontrol
dh_md5sums -Xvar/lib/aspell -Xvar/lib/ispell
dh_builddeb
binary-arch:
# Nothing to do here
dh_testdir
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|