Fix qrencode (#412)

* wip

* wip

* wip

* wip

* wip

* test output png

* fix test
This commit is contained in:
David Roman 2023-02-22 22:05:11 +00:00 committed by GitHub
parent 552afcafd8
commit 736bb7cfe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,9 +23,18 @@ build:
freedesktop.org/pkg-config: '*'
script: |
./autogen.sh
./configure --disable-dependency-tracking --prefix={{prefix}} $ARGS
./configure $ARGS
echo '#define VERSION "{{version}}"' >> config.h
make --jobs {{ hw.concurrency }} install
make install
env:
ARGS:
- --prefix={{prefix}}
CFLAGS: $(pkg-config --cflags libpng)
LDFLAGS: $(pkg-config --libs libpng)
test: |
qrencode 123456789 -o test.png
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"