ports/gdk-pixbuf: Add init script to update pixbuf loader cache

If the loader cache is not updated, pixbuf fails to load anything :)
This commit is contained in:
2026-08-24 20:56:25 +03:00
parent b42b16add7
commit b4349511f4
+9
View File
@@ -26,3 +26,12 @@ build() {
install() {
meson install --destdir="$DESTDIR" -C build || exit 1
}
post_install() {
mkdir -p "$DESTDIR/etc/init.d"
cat > "$DESTDIR/etc/init.d/gdk-pixbuf-update-loaders" << EOF
#!/bin/Shell
exec gdk-pixbuf-query-loaders --update-cache
EOF
chmod +x "$DESTDIR/etc/init.d/gdk-pixbuf-update-loaders"
}