diff --git a/build-aux/post_install.py b/build-aux/post_install.py
deleted file mode 100644
index 40fa31e07be7752a61085954758caacc3a99827a..0000000000000000000000000000000000000000
--- a/build-aux/post_install.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env python3
-
-# SPDX-FileCopyrightText: 2017 Carlos Sanchez <csoriano@gnome.org>
-# SPDX-FileCopyrightText: 2020 Bruce Cowan <bruce@bcowan.me.uk>
-#
-# SPDX-License-Identifier: CC0-1.0
-
-import os
-import subprocess
-
-prefix = os.environ.get("MESON_INSTALL_PREFIX", "/usr/local")
-datadir = os.path.join(prefix, "share")
-
-if "DESTDIR" not in os.environ:
-    print("Compiling GSettings schemas...")
-    schemas_dir = os.path.join(datadir, "glib-2.0", "schemas")
-    if not os.path.exists(schemas_dir):
-        os.makedirs(schemas_dir)
-    subprocess.call(["glib-compile-schemas", schemas_dir])
-
diff --git a/meson.build b/meson.build
index 9369ba8e938cc39979a8d71c7d0ca6cf37469396..8b097209085497e957f087aecaf3fdd01710519c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,11 +1,17 @@
-# SPDX-FileCopyrightText: 2016-2021 Bruce Cowan <bruce@bcowan.me.uk>
+# SPDX-FileCopyrightText: 2016-2022 Bruce Cowan <bruce@bcowan.me.uk>
 #
 # SPDX-License-Identifier: CC0-1.0
 
 project('rugby', 'c',
-    version: '0.3.0',
-    license:'GPL',
-    default_options: ['c_std=gnu11', 'warning_level=3'])
+  version: '0.3.0',
+  license:'GPLv3+',
+  meson_version: '>= 0.57.0',
+  default_options: [
+    'buildtype=debugoptimized',
+    'c_std=gnu11',
+    'warning_level=3'
+  ],
+)
 
 datadir = get_option('datadir')
 
@@ -40,4 +46,4 @@ add_project_arguments(cc.get_supported_arguments(cflags),
 subdir('data')
 subdir('src')
 
-meson.add_install_script('build-aux/post_install.py')
+gnome.post_install(glib_compile_schemas: true)