pantry/projects/fukuchi.org/qrencode/package.yml
David Roman 736bb7cfe6
Fix qrencode (#412)
* wip

* wip

* wip

* wip

* wip

* test output png

* fix test
2023-02-22 17:05:11 -05:00

41 lines
907 B
YAML

distributable:
url: https://github.com/fukuchi/libqrencode/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: fukuchi/libqrencode/tags
strip: /v/
provides:
- bin/qrencode
dependencies:
libpng.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: '*'
gnu.org/automake: '*'
gnu.org/coreutils: '*'
gnu.org/libtool: '*'
freedesktop.org/pkg-config: '*'
script: |
./autogen.sh
./configure $ARGS
echo '#define VERSION "{{version}}"' >> config.h
make install
env:
ARGS:
- --prefix={{prefix}}
CFLAGS: $(pkg-config --cflags libpng)
LDFLAGS: $(pkg-config --libs libpng)
test:
dependencies:
imagemagick.org: '*'
script: |
qrencode 123456789 -o test.png
test "$(identify test.png | rev | cut -d ' ' -f3-| rev)" = "test.png PNG 87x87 87x87+0+0 8-bit sRGB 293B"