--- shutdown-cui-1.1.0.orig/debian/changelog
+++ shutdown-cui-1.1.0/debian/changelog
@@ -0,0 +1,11 @@
+shutdown-cui (1.1.0-1) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 02 Aug 2026 16:22:48 +0000
+
+shutdown-cui (1.1.0) unstable; urgency=low
+
+  * Built from the shared source tarball; see the project's git history.
+
+ -- LoveKapibarasan <tmp@lovekapibarasan.org>  Sat, 02 Aug 2026 00:00:00 +0000
--- shutdown-cui-1.1.0.orig/debian/control
+++ shutdown-cui-1.1.0/debian/control
@@ -0,0 +1,16 @@
+Source: shutdown-cui
+Section: utils
+Priority: optional
+Maintainer: LoveKapibarasan <tmp@lovekapibarasan.org>
+Build-Depends: debhelper-compat (= 13)
+Standards-Version: 4.6.0
+Homepage: https://github.com/LoveKapibarasan/ShutdownAndFocus
+
+Package: shutdown-cui
+Architecture: amd64
+Depends: ${misc:Depends}, systemd
+Description: Shutdown and Focus management tool
+ A cross-platform PC usage limiter that enforces screen time by triggering a
+ system-level shutdown or suspend. It runs as a systemd service and monitors
+ daily usage limits, night-time blocking windows and Pomodoro-style
+ suspension.
--- shutdown-cui-1.1.0.orig/debian/postinst
+++ shutdown-cui-1.1.0/debian/postinst
@@ -0,0 +1,34 @@
+#!/bin/bash
+# Kept behaviourally identical to the .spec's %post and the PKGBUILD's
+# post_install: the enforcement daemon has to be running for the package to do
+# anything at all.
+set -e
+
+systemctl daemon-reload >/dev/null 2>&1 || true
+systemctl enable --now shutdown-cui.service >/dev/null 2>&1 || true
+
+# Update the application menu cache (best effort)
+if command -v update-desktop-database >/dev/null 2>&1; then
+    update-desktop-database /usr/share/applications >/dev/null 2>&1 || true
+fi
+
+# Place a desktop icon on each real user's Desktop
+DESKTOP_ENTRY="/usr/share/applications/shutdown-and-focus.desktop"
+if [ -f "$DESKTOP_ENTRY" ]; then
+    for home in /home/*; do
+        [ -d "$home" ] || continue
+        user=$(basename "$home")
+        desktop_dir="$home/Desktop"
+        [ -d "$desktop_dir" ] || continue
+        dest="$desktop_dir/shutdown-and-focus.desktop"
+        cp "$DESKTOP_ENTRY" "$dest"
+        chown "$user:$user" "$dest" 2>/dev/null || true
+        chmod +x "$dest"
+        # GNOME: mark as trusted so it launches without a warning
+        if command -v gio >/dev/null 2>&1; then
+            sudo -u "$user" gio set "$dest" metadata::trusted true 2>/dev/null || true
+        fi
+    done
+fi
+
+exit 0
--- shutdown-cui-1.1.0.orig/debian/rules
+++ shutdown-cui-1.1.0/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+
+PKGDIR = debian/shutdown-cui
+
+%:
+	dh $@
+
+# The source tarball already contains the compiled binary, so there is nothing
+# to configure, build or test.
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_test:
+
+# Stripping a PyInstaller binary discards the archive appended to the ELF and
+# the result no longer runs; the same reason PKGBUILD sets '!strip'. dwz and
+# shlibdeps would likewise choke on the bundled Qt libraries.
+override_dh_strip:
+override_dh_strip_nondeterminism:
+override_dh_dwz:
+override_dh_shlibdeps:
+
+override_dh_auto_install:
+	# get_base_dir() in utils.py resolves to dirname(sys.executable) on Linux,
+	# i.e. the folder the frozen binary itself lives in - so config.json and
+	# icon/ must sit next to it inside dist/, not one level up.
+	install -Dm755 shutdown-cui $(PKGDIR)/opt/shutdown-cui/dist/shutdown-cui
+	install -Dm644 config.json $(PKGDIR)/opt/shutdown-cui/dist/config.json
+	install -Dm644 logo.ico $(PKGDIR)/opt/shutdown-cui/dist/icon/logo.ico
+	# Static copy for the .desktop entry's Icon= (unrelated to get_base_dir()).
+	install -Dm644 logo.ico $(PKGDIR)/opt/shutdown-cui/logo.ico
+	install -Dm644 shutdown-cui.service $(PKGDIR)/lib/systemd/system/shutdown-cui.service
+	install -Dm644 shutdown-and-focus.desktop \
+		$(PKGDIR)/usr/share/applications/shutdown-and-focus.desktop
+	install -dm755 $(PKGDIR)/usr/bin
+	ln -sf /opt/shutdown-cui/dist/shutdown-cui $(PKGDIR)/usr/bin/shutdown-cui
+
+# dh_installsystemd would emit its own enable/start snippet; debian.postinst
+# already does that, together with the desktop-icon placement the other two
+# packages perform.
+override_dh_installsystemd:
