wok-next annotate aspell-dicts/receipt @ rev 21017

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