pantry/projects/github.com/ocrmypdf/OCRmyPDF/package.yml

41 lines
910 B
YAML
Raw Normal View History

distributable:
url: https://github.com/ocrmypdf/OCRmyPDF/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
2023-12-21 01:22:04 +03:00
github: ocrmypdf/OCRmyPDF
# platforms:
# - darwin
# - linux/x86-64
dependencies:
pkgx.sh: ^1
qpdf.sourceforge.io: ^11
build:
2023-12-21 01:22:04 +03:00
dependencies:
python.org: ~3.11
2023-12-21 01:22:04 +03:00
openjpeg.org: '*'
gnome.org/libxml2: ~2.12
2023-12-21 01:22:04 +03:00
gnome.org/libxslt: '*'
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
2023-12-21 01:22:04 +03:00
# pikepdf libs are compiled for MACOSX_DEPLOYMENT_TARGET=12.0
- run: '{{prefix}}/venv/bin/pip install --no-cache-dir --force-reinstall --no-binary :all: pikepdf'
if: darwin
- bkpyvenv seal {{prefix}} ocrmypdf
env:
# add any environment variables here
ARGS:
- --prefix="{{prefix}}"
CC: clang
LD: clang
provides:
- bin/ocrmypdf
test:
2023-12-21 01:22:04 +03:00
script: test "$(ocrmypdf --version)" = {{version}}