wok-next view aspell-dicts/receipt @ rev 21087
Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 28 05:11:49 2018 +0200 (2018-12-28) |
parents | f48456621a9d |
children | 613863b648f8 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="aspell-dicts"
4 VERSION="0.60.6.1"
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"
11 HOST_ARCH="any"
13 TARBALL="$PACKAGE-$VERSION.html"
14 WGET_URL="https://ftp.gnu.org/gnu/aspell/dict/0index.html"
16 BUILD_DEPENDS="aspell-dev"
17 SPLIT="\
18 aspell-af:af aspell-am:am aspell-ar:ar aspell-ast:ast \
19 aspell-az:az aspell-be:be aspell-bg:bg aspell-bn:bn \
20 aspell-br:br aspell-ca:ca aspell-cs:cs aspell-csb:csb \
21 aspell-cy:cy aspell-da:da aspell-de-alt:de-alt aspell-de:de \
22 aspell-el:el aspell-en:en aspell-eo:eo aspell-es:es \
23 aspell-et:et aspell-fa:fa aspell-fi:fi aspell-fo:fo \
24 aspell-fr:fr aspell-fy:fy aspell-ga:ga aspell-gd:gd \
25 aspell-gl:gl aspell-grc:grc aspell-gu:gu aspell-gv:gv \
26 aspell-he:he aspell-hi:hi aspell-hil:hil aspell-hr:hr \
27 aspell-hsb:hsb aspell-hu:hu aspell-hus:hus aspell-hy:hy \
28 aspell-ia:ia aspell-id:id aspell-is:is aspell-it:it \
29 aspell-kn:kn aspell-ku:ku aspell-ky:ky aspell-la:la \
30 aspell-lt:lt aspell-lv:lv aspell-mg:mg aspell-mi:mi \
31 aspell-mk:mk aspell-ml:ml aspell-mn:mn aspell-mr:mr \
32 aspell-ms:ms aspell-mt:mt aspell-nb:nb aspell-nds:nds \
33 aspell-nl:nl aspell-nn:nn aspell-ny:ny aspell-or:or \
34 aspell-pa:pa aspell-pl:pl aspell-pt_BR:pt_BR aspell-pt_PT:pt_PT \
35 aspell-qu:qu aspell-ro:ro aspell-ru:ru aspell-rw:rw \
36 aspell-sc:sc aspell-sk:sk aspell-sl:sl aspell-sr:sr \
37 aspell-sv:sv aspell-sw:sw aspell-ta:ta aspell-te:te \
38 aspell-tet:tet aspell-tk:tk aspell-tl:tl aspell-tn:tn \
39 aspell-tr:tr aspell-uk:uk aspell-uz:uz aspell-vi:vi \
40 aspell-wa:wa aspell-yi:yi aspell-zu:zu"
42 compile_rules() {
43 case $SET in
44 '')
45 wget -O- https://ftp.gnu.org/gnu/aspell/dict/0index.html \
46 | sed '/^<\/table>/,$d; /^<tr>.*/!d; s|[<>]|@|g;' \
47 | awk -F@ '{printf ("%s\t%s\t%s\n", $7, $11, $17)}' \
48 | sed '/^Name.*/d' \
49 > $WOK/$PACKAGE/.data
50 mkdir -p $install
51 ;;
52 *)
53 TARBALL=$(awk -F$'\t' -vlang=$SET '{if ($1==lang) print $3}' $WOK/$PACKAGE/.data)
54 VERSION=$(basename ${TARBALL#*$SET-} .tar.bz2)
55 WGET_URL="https://ftp.gnu.org/gnu/aspell/dict/$SET/$TARBALL"
57 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
58 rm -r $src/*
59 extract_source
60 cd $src/*
62 ./configure &&
63 make &&
64 make install
65 ;;
66 esac
67 }
69 genpkg_rules() {
70 case $PACKAGE in
71 aspell-dicts) ;;
72 *)
73 data="$WOK/aspell-dicts/.data"
74 lang=${PACKAGE#aspell-}
75 desc=$(awk -F$'\t' -vlang=$lang '{if ($1==lang) print $2}' $data)
76 TARBALL=$(awk -F$'\t' -vlang=$lang '{if ($1==lang) print $3}' $data)
77 VERSION=$(basename ${TARBALL#*$lang-} .tar.bz2)
78 copy @std
79 DEPENDS="aspell"
80 CAT="text|$desc"
81 ;;
82 esac
83 }