From 69139771009b93f63af2104909be264de04b2376 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:27:37 -0700 Subject: [PATCH] Modify build rules for plugin metainfo and changelogs Updated configuration to enable plugin metainfo installation and added logic to fetch changelogs from GitHub if in a git checkout. --- debian/rules | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/debian/rules b/debian/rules index 9631dd73..6e47a493 100755 --- a/debian/rules +++ b/debian/rules @@ -1,18 +1,23 @@ #!/usr/bin/make -f export DH_VERBOSE=1 +git_checkout = $(shell if [ -d .git ]; then echo true ; else echo false ; fi) + %: dh $@ --buildsystem=meson -override_dh_auto_configure: - dh_auto_configure -- \ - -Dinstall-plugin-metainfo=false \ - -Dwith-lua=lua53 +override_dh_auto_configure: patch + dh_auto_configure -- -Dinstall-plugin-metainfo=true -Dwith-lua=lua53 override_dh_installchangelogs: - set -eux; \ - for p in $$(dh_listpackages); do \ - mkdir -p "debian/$$p/usr/share/doc/$$p"; \ - dh_installchangelogs -p"$$p" debian/changelog.txt; \ - done + dh_installchangelogs debian/changelog.txt + + +udoc: +ifeq ($(git_checkout),true) + wget https://github.com/Zoitechat/documentation/raw/master/changelog.rst -O debian/changelog.txt + wget https://github.com/Zoitechat/documentation/raw/master/plugins.rst -O debian/plugins.txt +else + $(error you are running this outside of a git checkout; this is not what the maintainer expects) +endif