{
    "name": "tesseract",
    "buildsystem": "autotools",
    "config-opts": [
        "--disable-graphics"
    ],
    "sources": [
        {
            "type": "archive",
            "url": "https://github.com/tesseract-ocr/tesseract/archive/4.0.0.tar.gz",
            "sha256": "a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd"
        }
    ],
    "modules": [
        {
            "name": "libleptonica",
            "buildsystem": "autotools",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/DanBloomberg/leptonica/releases/download/1.77.0/leptonica-1.77.0.tar.gz",
                    "sha256": "161d0b368091986b6c60990edf257460bdc7da8dd18d48d4179e297bcdca5eb7"
                }
            ]
        },
        {
            "name": "tessdata",
            "buildsystem": "simple",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/tesseract-ocr/tessdata/archive/4.0.0.tar.gz",
                    "sha256": "38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
                }
            ],
            "build-commands": [
                "mkdir -p /app/share/tessdata",
                "cp eng.traineddata /app/share/tessdata",
                "cp osd.traineddata /app/share/tessdata",

                "mkdir -p /app/share/locale/bg",
                "cp bul.traineddata /app/share/locale/bg",
                "mkdir -p /app/share/locale/da",
                "cp dan.traineddata /app/share/locale/da",
                "mkdir -p /app/share/locale/de",
                "cp deu.traineddata /app/share/locale/de",
                "mkdir -p /app/share/locale/eo",
                "cp epo.traineddata /app/share/locale/eo",
                "mkdir -p /app/share/locale/fi",
                "cp fin.traineddata /app/share/locale/fi",
                "mkdir -p /app/share/locale/fr",
                "cp fra.traineddata /app/share/locale/fr",
                "mkdir -p /app/share/locale/gl",
                "cp glg.traineddata /app/share/locale/gl",
                "mkdir -p /app/share/locale/hu",
                "cp hun.traineddata /app/share/locale/hu",
                "mkdir -p /app/share/locale/it",
                "cp ita.traineddata /app/share/locale/it",
                "mkdir -p /app/share/locale/ja",
                "cp jpn.traineddata /app/share/locale/ja",
                "mkdir -p /app/share/locale/nl",
                "cp nld.traineddata /app/share/locale/nl",
                "mkdir -p /app/share/locale/nb",
                "cp nor.traineddata /app/share/locale/nb",
                "mkdir -p /app/share/locale/pt",
                "cp por.traineddata /app/share/locale/pt",
                "mkdir -p /app/share/locale/ru",
                "cp rus.traineddata /app/share/locale/ru",
                "mkdir -p /app/share/locale/es",
                "cp spa.traineddata /app/share/locale/es",
                "mkdir -p /app/share/locale/sv",
                "cp swe.traineddata /app/share/locale/sv",
                "mkdir -p /app/share/locale/uk",
                "cp ukr.traineddata /app/share/locale/uk"
            ]
        }
    ]
}
