pantry/projects/gnupg.org/libgpg-error/package.yml
2023-05-30 17:11:28 -04:00

31 lines
688 B
YAML

distributable:
url: https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-{{version.raw}}.tar.gz
strip-components: 1
versions:
url: https://gnupg.org/ftp/gcrypt/libgpg-error/
match: /libgpg-error-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /libgpg-error-/
- /.tar.gz/
provides:
- bin/gpg-error
- bin/gpgrt-config
- bin/yat2m
build:
script: |
./configure --prefix={{prefix}}
make
make check
make install
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
test:
script: test "$(gpg-error 56)" = "$OUTPUT"
env:
OUTPUT: "56 = (0, 56) = (GPG_ERR_SOURCE_UNKNOWN, GPG_ERR_BAD_CERT_CHAIN) = (Unspecified source, Bad certificate chain)"