mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
31 lines
668 B
YAML
31 lines
668 B
YAML
distributable:
|
|
url: https://github.com/nghttp2/nghttp2/releases/download/v{{ version }}/nghttp2-{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: nghttp2/nghttp2
|
|
strip: /^nghttp2 v/
|
|
|
|
build:
|
|
dependencies:
|
|
freedesktop.org/pkg-config: '*'
|
|
script: |
|
|
./configure --prefix={{ prefix }}
|
|
make -j {{ hw.concurrency }} -C lib install
|
|
|
|
test:
|
|
script: |
|
|
mv $FIXTURE test.c
|
|
cc -lnghttp2 -o test test.c
|
|
test "$(./test)" == "{{ version }}"
|
|
fixture: |
|
|
#include <nghttp2/nghttp2.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
nghttp2_info *info = nghttp2_version(0);
|
|
printf("%s", info->version_str);
|
|
return 0;
|
|
}
|