aboutsummaryrefslogtreecommitdiff
path: root/devel/glib20/files/glib-schemas.ucl.in
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glib20/files/glib-schemas.ucl.in')
-rw-r--r--devel/glib20/files/glib-schemas.ucl.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/glib20/files/glib-schemas.ucl.in b/devel/glib20/files/glib-schemas.ucl.in
new file mode 100644
index 000000000000..c576a21b27a1
--- /dev/null
+++ b/devel/glib20/files/glib-schemas.ucl.in
@@ -0,0 +1,16 @@
+path: "%%PREFIX%%/share/glib-2.0/schemas"
+cleanup: {
+ type: lua
+ sandbox: false
+ script: <<EOS
+os.remove("%%PREFIX%%/share/glib-2.0/schemas/gschemas.compiled")
+EOS
+}
+trigger: {
+ type: lua
+ sandbox: false
+ script: <<EOS
+print("Compiling glib schemas")
+pkg.exec({"%%PREFIX%%/bin/glib-compile-schemas", "%%PREFIX%%/share/glib-2.0/schemas"})
+EOS
+}