pantry/projects/leptonica.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

44 lines
941 B
YAML

distributable:
url: https://github.com/DanBloomberg/leptonica/releases/download/{{version}}/leptonica-{{version}}.tar.gz
strip-components: 1
versions:
github: DanBloomberg/leptonica/tags
dependencies:
giflib.sourceforge.io: 5
libjpeg-turbo.org: 2
libpng.org: 1
simplesystems.org/libtiff: 4
openjpeg.org: '*'
google.com/webp: '*'
build:
dependencies:
freedesktop.org/pkg-config: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }}
make install
env:
ARGS:
- --prefix="{{prefix}}"
provides:
- bin/convertfilestopdf
- bin/convertfilestops
- bin/convertformat
- bin/convertsegfilestopdf
- bin/convertsegfilestops
- bin/converttopdf
- bin/converttops
- bin/fileinfo
- bin/imagetops
- bin/xtractprotos
test:
dependencies:
gnu.org/wget: '*'
script: |
wget https://people.math.sc.edu/Burkardt/data/tif/at3_1m4_01.tif
fileinfo at3_1m4_01.tif