mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
38 lines
859 B
YAML
38 lines
859 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:
|
|
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"
|