diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-04 12:12:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-04 12:12:47 +0000 |
commit | 4957fbae2af36fde83aba95b274c7dae3342c244 (patch) | |
tree | 73b2fe45a4978cb3b23c8a4d2202f205da440535 /debian/rules | |
parent | Adding upstream version 20230204. (diff) | |
download | gnome-shell-extensions-extra-debian/20230204-1.tar.xz gnome-shell-extensions-extra-debian/20230204-1.zip |
Adding debian version 20230204-1.debian/20230204-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..25745b8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f + +%: + dh ${@} + +execute_before_dh_auto_clean: + # hibernate-status + $(MAKE) -C hibernate-status clean + +override_dh_auto_build: + # multi-monitors-add-on + cd multi-monitors-add-on && \ + for TRANSLATION in $(EXTENSION)/locale/* ; do \ + msgfmt -cv -o $${TRANSLATION}/LC_MESSAGES/multi-monitors-add-on.mo \ + $${TRANSLATION}/LC_MESSAGES/multi-monitors-add-on.po; \ + done + + glib-compile-schemas --strict --targetdir=$(EXTENSION)/schemas/ $(EXTENSION)/schemas + +override_dh_auto_install: + mkdir -p debian/gnome-shell-extensions-extra/usr/share/gnome-shell/extensions + + # disable-workspace-switcher + UUID=$(shell awk -F\" '/"uuid": / { print $$4 }' disable-workspace-switcher/*/metadata.json) + cp -a disable-workspace-switcher debian/gnome-shell-extensions-extra/usr/share/gnome-shell/extensions/$${UUID} + + # hibernate-status + UUID=$(shell awk -F\" '/"uuid": / { print $$4 }' hibernate-status/metadata.json) + $(NAME) -C hibernate-status DESTDIR=$(CURDIR)/debian/gnome-shell-extensions-extra install + + rm -f debian/gnome-shell-extensions-extra/usr/share/gnome-shell/extensions/$${UUID}/LICENSE + rm -f debian/gnome-shell-extensions-extra/usr/share/gnome-shell/extensions/$${UUID}/README.md + + # multi-monitors-add-on + UUID=$(shell awk -F\" '/"uuid": / { print $$4 }' multi-monitors-add-on/*/metadata.json) + cp -a multi-monitors-add-on/$${UUID} debian/gnome-shell-extensions-extra/usr/share/gnome-shell/extensions/$${UUID} |