mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
72934b3600
closes #6099
45 lines
1,020 B
YAML
45 lines
1,020 B
YAML
distributable:
|
|
url: https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v{{ version }}/libslirp-v{{ version }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
gitlab: gitlab.freedesktop.org:slirp/libslirp
|
|
|
|
dependencies:
|
|
gnome.org/glib: ^2
|
|
|
|
build:
|
|
dependencies:
|
|
mesonbuild.com: '*'
|
|
ninja-build.org: 1
|
|
freedesktop.org/pkg-config: ^0.29
|
|
script: |
|
|
meson build $ARGS
|
|
ninja -C build install all
|
|
env:
|
|
ARGS:
|
|
- -Ddefault_library=both
|
|
- --prefix={{ prefix }}
|
|
- --libdir={{ prefix }}/lib
|
|
- --buildtype=release
|
|
- --wrap-mode=nofallback
|
|
|
|
test:
|
|
script: |
|
|
mv $FIXTURE test.c
|
|
gcc test.c -lslirp -o test
|
|
./test
|
|
fixture: |
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stddef.h>
|
|
#include <slirp/libslirp.h>
|
|
int main() {
|
|
SlirpConfig cfg;
|
|
memset(&cfg, 0, sizeof(cfg));
|
|
cfg.version = 1;
|
|
cfg.in_enabled = true;
|
|
cfg.vhostname = "testServer";
|
|
Slirp* ctx = slirp_new(&cfg, NULL, NULL);
|
|
return 0;
|
|
}
|