mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 08:40:50 +03:00
+nghttp2
This commit is contained in:
parent
4044fd1f39
commit
fc98aa5f94
34
projects/nghttp2.org/package.yml
Normal file
34
projects/nghttp2.org/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
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:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script: |
|
||||||
|
./configure --prefix={{ prefix }}
|
||||||
|
make -j {{ hw.concurrency }} -C lib install
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in a new issue