From 76233709cde98e99e712bd06225b8857c55b13e9 Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 6 Jun 2025 21:54:25 +0900 Subject: [PATCH] Add gschema install stage --- PKGBUILD | 8 ++++++++ recoder.install | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 recoder.install diff --git a/PKGBUILD b/PKGBUILD index 4397e35..35ae737 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,6 +13,7 @@ depends=( 'python' 'python-gobject' 'ffmpeg' + 'glib2' ) optdepends=( 'libcanberra: play system notification sounds' @@ -29,9 +30,12 @@ sha256sums=() build() { cd "$srcdir/../" # go to your project root + glib-compile-resources src/resources/resources.xml \ --target=src/recoder/resources.gresource \ --sourcedir=src/resources + + python -m build --wheel --outdir dist } @@ -43,4 +47,8 @@ package() { "$pkgdir/usr/share/applications/net.jeena.Recoder.desktop" install -Dm644 src/resources/net.jeena.Recoder.svg \ "$pkgdir/usr/share/icons/hicolor/scalable/apps/net.jeena.Recoder.svg" + install -Dm644 src/resources/net.jeena.recoder.gschema.xml \ + "$pkgdir/usr/share/glib-2.0/schemas/net.jeena.recoder.gschema.xml" } + +install=recoder.install \ No newline at end of file diff --git a/recoder.install b/recoder.install new file mode 100644 index 0000000..a778520 --- /dev/null +++ b/recoder.install @@ -0,0 +1,11 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas +} + +post_upgrade() { + glib-compile-schemas /usr/share/glib-2.0/schemas +} + +post_remove() { + glib-compile-schemas /usr/share/glib-2.0/schemas +}