pantry/projects/gnu.org/libsigsegv/package.yml
Andrii Riabchenko fdbfd24285 new file: projects/gnu.org/libsigsegv/package.yml
new file:   projects/gnu.org/libsigsegv/test.c
2024-01-10 10:00:24 -05:00

26 lines
697 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/libsigsegv/libsigsegv-{{version.marketing}}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/libsigsegv/
match: /libsigsegv-(\d+\.\d+(\.\d+)?).tar.gz/
strip:
- /^libsigsegv-/
- /\.tar\.gz$/
build:
script:
- ./configure $ARGS
- make --jobs {{hw.concurrency}}
- make --jobs {{hw.concurrency}} check
- make --jobs {{hw.concurrency}} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix={{prefix}}
- --libdir={{prefix}}/lib
- --enable-shared
- --enable-relocatable
test:
- cc test.c -lsigsegv -o test
- ./test | grep 'Test passed'