wok-next view aspell-dicts/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 7b8e000b629f |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="aspell-dicts"
4 VERSION="0.60.8"
5 CATEGORY="meta"
6 SHORT_DESC="Aspell dictionary"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://ftp.gnu.org/gnu/aspell/dict/0index.html"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/aspell.html"
12 TARBALL="$PACKAGE-$VERSION.html"
13 WGET_URL="https://ftp.gnu.org/gnu/aspell/dict/0index.html"
15 BUILD_DEPENDS="aspell-dev"
16 SPLIT="\
17 aspell-af:af aspell-am:am aspell-ar:ar aspell-ast:ast \
18 aspell-az:az aspell-be:be aspell-bg:bg aspell-bn:bn \
19 aspell-br:br aspell-ca:ca aspell-cs:cs aspell-csb:csb \
20 aspell-cy:cy aspell-da:da aspell-de-alt:de-alt aspell-de:de \
21 aspell-el:el aspell-en:en aspell-eo:eo aspell-es:es \
22 aspell-et:et aspell-fa:fa aspell-fi:fi aspell-fo:fo \
23 aspell-fr:fr aspell-fy:fy aspell-ga:ga aspell-gd:gd \
24 aspell-gl:gl aspell-grc:grc aspell-gu:gu aspell-gv:gv \
25 aspell-he:he aspell-hi:hi aspell-hil:hil aspell-hr:hr \
26 aspell-hsb:hsb aspell-hu:hu aspell-hus:hus aspell-hy:hy \
27 aspell-ia:ia aspell-id:id aspell-is:is aspell-it:it \
28 aspell-kn:kn aspell-ku:ku aspell-ky:ky aspell-la:la \
29 aspell-lt:lt aspell-lv:lv aspell-mg:mg aspell-mi:mi \
30 aspell-mk:mk aspell-ml:ml aspell-mn:mn aspell-mr:mr \
31 aspell-ms:ms aspell-mt:mt aspell-nb:nb aspell-nds:nds \
32 aspell-nl:nl aspell-nn:nn aspell-ny:ny aspell-or:or \
33 aspell-pa:pa aspell-pl:pl aspell-pt_BR:pt_BR aspell-pt_PT:pt_PT \
34 aspell-qu:qu aspell-ro:ro aspell-ru:ru aspell-rw:rw \
35 aspell-sc:sc aspell-sk:sk aspell-sl:sl aspell-sr:sr \
36 aspell-sv:sv aspell-sw:sw aspell-ta:ta aspell-te:te \
37 aspell-tet:tet aspell-tk:tk aspell-tl:tl aspell-tn:tn \
38 aspell-tr:tr aspell-uk:uk aspell-uz:uz aspell-vi:vi \
39 aspell-wa:wa aspell-yi:yi aspell-zu:zu"
41 HOST_ARCH="any"
43 compile_rules()
44 {
45 case $SET in
46 '')
47 wget -O- https://ftp.gnu.org/gnu/aspell/dict/0index.html \
48 | sed '/^<\/table>/,$d; /^<tr>.*/!d; s|[<>]|@|g;' \
49 | awk -F@ '{printf ("%s\t%s\t%s\n", $7, $11, $17)}' \
50 | sed '/^Name.*/d' \
51 > $WOK/$PACKAGE/.data
52 mkdir -p $install
53 ;;
54 *)
55 TARBALL=$(awk -F$'\t' -vlang=$SET '{if ($1==lang) print $3}' $WOK/$PACKAGE/.data)
56 VERSION=$(basename ${TARBALL#*$SET-} .tar.bz2)
57 WGET_URL="https://ftp.gnu.org/gnu/aspell/dict/$SET/$TARBALL"
59 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
60 rm -r $src/*
61 extract_source
62 cd $src/*
64 ./configure &&
65 make &&
66 make install
67 ;;
68 esac
69 }
71 genpkg_rules()
72 {
73 case $PACKAGE in
74 aspell-dicts) ;;
75 *)
76 data="$WOK/aspell-dicts/.data"
77 lang=${PACKAGE#aspell-}
78 desc=$(awk -F$'\t' -vlang=$lang '{if ($1==lang) print $2}' $data)
79 TARBALL=$(awk -F$'\t' -vlang=$lang '{if ($1==lang) print $3}' $data)
80 VERSION=$(basename ${TARBALL#*$lang-} .tar.bz2)
81 copy @std
82 DEPENDS="aspell"
83 CAT="text|$desc"
84 ;;
85 esac
86 }