pidgin/dictionaries

Initial revision
draft
2021-08-19, Gary Kramlich
1d1b857578e2
Parents
Children 77fe2f5027b6
Initial revision
  • +3 -0
    .hgignore
  • +10 -0
    Dockerfile
  • +30 -0
    convey.yml
  • +19 -0
    mk-pkg-list
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/.hgignore Thu Aug 19 22:52:12 2021 -0500
    @@ -0,0 +1,3 @@
    +syntax: glob
    +dictionaries.zip
    +
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/Dockerfile Thu Aug 19 22:52:12 2021 -0500
    @@ -0,0 +1,10 @@
    +FROM debian:bullseye
    +
    +ENV DEBIAN_FRONTEND=noninteractive
    +
    +COPY mk-pkg-list .
    +RUN set -ex && \
    + apt-get update && \
    + apt-get install -y zip && \
    + ./mk-pkg-list | xargs apt-get install -y
    +
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/convey.yml Thu Aug 19 22:52:12 2021 -0500
    @@ -0,0 +1,30 @@
    +environment:
    + - REPO=pidgin/windows-dictionaries
    + - TAG=latest
    +
    +tasks:
    + import:
    + type: docker/import
    + files: .:.
    +
    + build:
    + type: docker/build
    + dockerfile: Dockerfile
    + tag: ${REPO}:${TAG}
    + files: .:.
    +
    + copy:
    + type: docker/run
    + image: ${REPO}:${TAG}
    + script:
    + - zip --junk-paths /workspace/dictionaries.zip /usr/share/hunspell/*
    +
    + export:
    + type: docker/export
    + files: .:.
    +
    +plans:
    + default:
    + stages:
    + - tasks: [import, build, copy, export]
    +
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/mk-pkg-list Thu Aug 19 22:52:12 2021 -0500
    @@ -0,0 +1,19 @@
    +#!/bin/sh
    +
    +# All of the hunspell dictionaries provide the package "hunspell-dictionary",
    +# so we use that to find all of them. We sort them for our own sanity and then
    +# grep out some problem packages. Namely the frami and french packages and then
    +# manually specify the proper french package.
    +
    +(
    + apt-cache search "hunspell-dictionary" | \
    + sort | \
    + grep -v frami | \
    + grep -v dbgsym | \
    + grep -v -- -med | \
    + grep -v -- -fr | \
    + grep -v -- myspell-es | \
    + awk '{ print $1 }';
    + echo hunspell-fr-comprehensive
    +) | sort
    +