fix(libsoup)

This commit is contained in:
Jacob Heider 2024-04-25 20:10:02 -04:00
parent 9fc97a5a1b
commit 127b9aff58
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -32,9 +32,12 @@ build:
- meson compile -C build --verbose - meson compile -C build --verbose
- meson install -C build - meson install -C build
- run: | - run: |
d=$(ls) DIRS=$(find . -mindepth 1 -maxdepth 1 -type d -name libsoup\*)
ln -s $d/libsoup libsoup for d in $DIRS; do
working-directory: "{{prefix}}/include" d2=$(echo $d | sed -r 's/\.\/(libsoup.*)-[0-9]+\.[0-9]+$/\1/')
ln -s $d $d2
done
working-directory: '{{prefix}}/include'
env: env:
MESON_ARGS: MESON_ARGS:
- --prefix="{{prefix}}" - --prefix="{{prefix}}"
@ -46,4 +49,4 @@ test:
freedesktop.org/pkg-config: '*' freedesktop.org/pkg-config: '*'
script: script:
- cc test.c $(pkg-config --libs --cflags libsoup-3.0) -o test - cc test.c $(pkg-config --libs --cflags libsoup-3.0) -o test
- ./test - ./test