pantry/projects/github.com/rrthomas/libpaper/package.yml
2023-08-17 16:20:27 -04:00

29 lines
691 B
YAML

distributable:
url: https://github.com/rrthomas/libpaper/releases/download/v{{version}}/libpaper-{{version}}.tar.gz
strip-components: 1
versions:
github: rrthomas/libpaper
build:
dependencies:
tea.xyz/gx/cc: c99
gnu.org/make: '*'
gnu.org/help2man: '*'
script:
- ./configure $CONFIGURE_ARGS
- make install
env:
CONFIGURE_ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --sysconfdir="{{prefix}}/etc"
provides:
- bin/paper
test:
dependencies:
tea.xyz/gx/cc: c99
script:
- paper --version | grep {{version}}
- cc test.c -lpaper -o test
- ./test