From 66c8c6adcebc1c43fd3d13bc8fb45e01659df5fd Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 11 Apr 2023 19:09:48 -0400 Subject: [PATCH] +jbig2dec Closes #321 --- projects/jbig2dec.com/package.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/jbig2dec.com/package.yml diff --git a/projects/jbig2dec.com/package.yml b/projects/jbig2dec.com/package.yml new file mode 100644 index 00000000..36a5ac1b --- /dev/null +++ b/projects/jbig2dec.com/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9531/jbig2dec-0.19.tar.gz + strip-components: 1 + +versions: + - 0.19 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + gnu.org/automake: '*' + gnu.org/libtool: '*' + script: | + ./autogen.sh --prefix={{prefix}} + make install + +provides: + - bin/jbig2dec + +test: + dependencies: + tea.xyz/gx/cc: c99 + curl.se: '*' + script: | + curl -LO https://github.com/apache/tika/raw/master/tika-parsers/src/test/resources/test-documents/testJBIG2.jb2 + jbig2dec -t pbm --hash testJBIG2.jb2 | grep aa35470724c946c7e953ddd49ff5aab9f8289aaf