mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 10:45:08 +03:00
736bb7cfe6
* wip * wip * wip * wip * wip * test output png * fix test
40 lines
907 B
YAML
40 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"
|