eternal-timer

LOW
maintainer Omni_king 0 votes scanned 2026-10-26 05:43:49.644165
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Tamim <you@example.com>
2pkgname=eternal-timer
3pkgver=3.0.0
4pkgrel=1
5pkgdesc="Timers and stopwatches that survive shutdowns and power cuts"
6arch=('any')
7url="https://github.com/Tamim180/eternal-timer"
8license=('MIT')
9depends=('python' 'pyside6')
10optdepends=(
11 'python-cryptography: encrypted phone sync'
12 'libnotify: desktop notifications while the window is closed'
13)
14source=("$pkgname-$pkgver.tar.gz::https://github.com/Tamim180/eternal-timer/archive/refs/tags/v$pkgver.tar.gz")
15sha256sums=('23551868df7cafac6d3976beae5dc3d74b4a6d99c4cf80217179ea7005def74e')
16install=eternal-timer.install
17
18package() {
19 cd "$pkgname-$pkgver"
20
21 # --- the app itself, as a flat module directory ---
22 install -Dm644 eternal_timer_core.py "$pkgdir/usr/lib/$pkgname/eternal_timer_core.py"
23 install -Dm644 eternal_timer_sync.py "$pkgdir/usr/lib/$pkgname/eternal_timer_sync.py"
24 install -Dm755 eternal_timer_gui.py "$pkgdir/usr/lib/$pkgname/eternal_timer_gui.py"
25 install -Dm755 etimer "$pkgdir/usr/lib/$pkgname/etimer"
26
27 # --- thin launchers on PATH ---
28 # Running "python3 /usr/lib/eternal-timer/<file>" puts that directory on
29 # sys.path automatically, so the sibling "import eternal_timer_core"
30 # inside etimer/eternal_timer_gui.py just works with no PYTHONPATH games.
31 install -Dm755 /dev/stdin "$pkgdir/usr/bin/eternal-timer" <<'EOF'
32#!/bin/sh
33exec python3 /usr/lib/eternal-timer/eternal_timer_gui.py "$@"
34EOF
35
36 install -Dm755 /dev/stdin "$pkgdir/usr/bin/etimer" <<'EOF'
37#!/bin/sh
38exec python3 /usr/lib/eternal-timer/etimer "$@"
39EOF
40
41 # --- desktop entry + icon ---
42 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/eternal-timer.desktop" <<'EOF'
43[Desktop Entry]
44Type=Application
45Name=Eternal Timer
46Comment=Multi-timer and stopwatch that survives shutdowns
47Exec=eternal-timer
48Icon=eternal-timer
49Terminal=false
50Categories=Utility;
51EOF
52
53 install -Dm644 flatpak/icon-128.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/eternal-timer.png"
54 install -Dm644 flatpak/icon-256.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/eternal-timer.png"
55
56 # --- catch a finished countdown at login, even after a power cut ---
57 # Vendored to /etc/xdg/autostart (not ~/.config/autostart) so it applies
58 # system-wide without touching any user's home directory during install.
59 install -Dm644 /dev/stdin "$pkgdir/etc/xdg/autostart/eternal-timer-check.desktop" <<'EOF'
60[Desktop Entry]
61Type=Application
62Name=Eternal Timer check
63Comment=Checks for finished timers at login and notifies
64Exec=etimer check
65Terminal=false
66X-GNOME-Autostart-enabled=true
67NoDisplay=true
68EOF
69
70 # --- optional systemd --user units: re-check every 60s while logged in ---
71 # Vendored units go in /usr/lib/systemd/user/, not /etc -- enabling them
72 # per-user is a login-session action a package install can't safely do,
73 # so that's left to the user (see eternal-timer.install).
74 install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/user/eternal-timer-check.service" <<'EOF'
75[Unit]
76Description=Eternal Timer finish check
77
78[Service]
79Type=oneshot
80ExecStart=/usr/bin/etimer check
81EOF
82
83 install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/user/eternal-timer-check.timer" <<'EOF'
84[Unit]
85Description=Run Eternal Timer check every minute
86
87[Timer]
88OnBootSec=30s
89OnUnitActiveSec=60s
90Persistent=true
91
92[Install]
93WantedBy=timers.target
94EOF
95
96 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
97}
98

Scan history

Scanned at (UTC)SeverityRules
2026-10-26 05:43:49 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion