pantry/projects/gnome.org/glib-networking/package.yml
Andrew dec3fa79a8
gnome.org/glib-networking (#3959)
* new file:   projects/gnome.org/glib-networking/gtls-test.c
	new file:   projects/gnome.org/glib-networking/package.yml

* GIO_MODULE_DIR
2023-11-06 12:53:19 -05:00

47 lines
1.2 KiB
YAML

distributable:
url: https://download.gnome.org/sources/glib-networking/{{version.marketing}}/glib-networking-{{version}}.tar.xz
strip-components: 1
versions:
url: https://download.gnome.org/sources/glib-networking/cache.json
match: /glib-networking-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^glib-networking-/
- /\.tar\.xz/
dependencies:
gnome.org/glib: '*'
gnutls.org: '*'
gnome.org/gsettings-desktop-schemas: '*'
runtime:
env:
GIO_MODULE_DIR: "{{prefix}}/lib/gio/modules"
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
linux:
llvm.org: '*'
script:
- meson $MESON_ARGS build
- meson compile -C build --verbose
- meson install -C build
env:
linux:
CC: clang
CXX: clang++
LD: clang
MESON_ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
- -Dlibproxy=disabled
- -Dopenssl=disabled
- -Dgnome_proxy=disabled
test:
dependencies:
linux:
llvm.org: '*'
script:
- cc gtls-test.c -D_REENTRANT -lgio-2.0 -lgobject-2.0 -lglib-2.0 -o test
- ./test