pantry/projects/people.redhat.com/sgrubb/libcap-ng/package.yml
Andrii Riabchenko 1245af6a42 new file: projects/people.redhat.com/sgrubb/libcap-ng/package.yml
new file:   projects/people.redhat.com/sgrubb/libcap-ng/test.c
2023-11-22 13:19:16 -05:00

31 lines
No EOL
739 B
YAML

distributable:
url: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-{{version}}.tar.gz
strip-components: 1
display-name: libcap-ng
versions:
url: https://people.redhat.com/sgrubb/libcap-ng/
match: /libcap-ng-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^libcap-ng-/
- /\.tar\.gz/
platforms:
- linux
build:
script:
- ./configure $CONFIGURE_ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
env:
CONFIGURE_ARGS:
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --disable-silent-rules
provides:
- bin/captest
- bin/filecap
- bin/netcap
- bin/pscap
test:
- cc test.c -lcap-ng -o test
- ./test | grep ok