2023-11-17 20:07:39 +03:00
|
|
|
distributable:
|
|
|
|
url: https://download.gnome.org/sources/libsoup/{{version.marketing}}/libsoup-{{version}}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
url: https://download.gnome.org/sources/libsoup/cache.json
|
|
|
|
match: /libsoup-\d+\.\d+\.\d+\.tar\.xz/
|
|
|
|
strip:
|
|
|
|
- /^libsoup-/
|
|
|
|
- /\.tar\.xz/
|
|
|
|
dependencies:
|
|
|
|
gnome.org/glib-networking: '*'
|
|
|
|
gnutls.org: '*'
|
|
|
|
rockdaboot.github.io/libpsl: '*'
|
|
|
|
kerberos.org: '*'
|
|
|
|
gnome.org/libxml2: '*'
|
|
|
|
sqlite.org: '*'
|
|
|
|
nghttp2.org: '*'
|
|
|
|
linux:
|
|
|
|
gnu.org/gettext: '*'
|
|
|
|
gnome.org/glib: '*'
|
|
|
|
github.com/google/brotli: '*'
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnome.org/gobject-introspection: '*'
|
|
|
|
mesonbuild.com: '*'
|
|
|
|
ninja-build.org: '*'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
python.org: ~3.11
|
|
|
|
gnome.org/vala: '*'
|
|
|
|
script:
|
|
|
|
- meson setup build $MESON_ARGS
|
|
|
|
- meson compile -C build --verbose
|
|
|
|
- meson install -C build
|
|
|
|
- run: |
|
2024-04-26 03:10:02 +03:00
|
|
|
DIRS=$(find . -mindepth 1 -maxdepth 1 -type d -name libsoup\*)
|
|
|
|
for d in $DIRS; do
|
|
|
|
d2=$(echo $d | sed -r 's/\.\/(libsoup.*)-[0-9]+\.[0-9]+$/\1/')
|
|
|
|
ln -s $d $d2
|
|
|
|
done
|
|
|
|
working-directory: '{{prefix}}/include'
|
2023-11-17 20:07:39 +03:00
|
|
|
env:
|
|
|
|
MESON_ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --libdir="{{prefix}}/lib"
|
|
|
|
- --buildtype=release
|
|
|
|
- --wrap-mode=nofallback
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
script:
|
2024-04-26 03:21:49 +03:00
|
|
|
- run: cc test.c $(pkg-config --libs --cflags libsoup-3.0) -o test
|
|
|
|
if: '>=2.90'
|
|
|
|
- run: cc test.c $(pkg-config --libs --cflags libsoup-2.4) -o test
|
|
|
|
if: '<2.90'
|
2024-04-26 03:10:02 +03:00
|
|
|
- ./test
|