porst: Add json-glib port

This commit is contained in:
2026-08-24 21:52:55 +03:00
parent 44189938d7
commit f2d08a85a5
3 changed files with 64 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash ../install.sh
NAME='json-glib'
VERSION='1.10.8'
DOWNLOAD_URL="https://github.com/GNOME/json-glib/archive/refs/tags/$VERSION.tar.gz#7a114bdac0b2611a7207e981c37fa9b1e70d9cb642470cd9e967b135428cec52"
DEPENDENCIES=('glib' 'json-c')
CONFIGURE_OPTIONS=(
'-Dprefix=/usr'
'-Dbuildtype=release'
'-Dintrospection=disabled'
'-Dnls=disabled'
'-Dtests=false'
)
configure() {
meson setup \
--reconfigure \
--cross-file "$MESON_CROSS_FILE" \
"${CONFIGURE_OPTIONS[@]}" \
build || exit 1
}
build() {
meson compile -C build || exit 1
}
install() {
meson install --destdir="$DESTDIR" -C build || exit 1
}