From 48d8902e9805c99c57b8db7f52a20ec6c8bc7714 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 24 Aug 2026 20:57:27 +0300 Subject: [PATCH] ports/glib: Add init script to compile schemas --- ports/glib/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ports/glib/build.sh b/ports/glib/build.sh index 68580d54..bf291485 100755 --- a/ports/glib/build.sh +++ b/ports/glib/build.sh @@ -25,3 +25,12 @@ build() { install() { meson install --destdir="$DESTDIR" -C build || exit 1 } + +post_install() { + mkdir -p "$DESTDIR/etc/init.d" + cat > "$DESTDIR/etc/init.d/glib-compile-schemas" << EOF +#!/bin/Shell +exec glib-compile-schemas /usr/share/glib-2.0/schemas +EOF + chmod +x "$DESTDIR/etc/init.d/glib-compile-schemas" +}