eternal-timer
LOW
maintainer Omni_king
0 votes
scanned 2026-10-26 05:43:49.644165
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>
2
pkgname=eternal-timer
3
pkgver=3.0.0
4
pkgrel=1
5
pkgdesc="Timers and stopwatches that survive shutdowns and power cuts"
6
arch=('any')
7
url="https://github.com/Tamim180/eternal-timer"
8
license=('MIT')
9
depends=('python' 'pyside6')
10
optdepends=(
11
'python-cryptography: encrypted phone sync'
12
'libnotify: desktop notifications while the window is closed'
13
)
14
source=("$pkgname-$pkgver.tar.gz::https://github.com/Tamim180/eternal-timer/archive/refs/tags/v$pkgver.tar.gz")
15
sha256sums=('23551868df7cafac6d3976beae5dc3d74b4a6d99c4cf80217179ea7005def74e')
16
install=eternal-timer.install
17
18
package() {
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
33
exec python3 /usr/lib/eternal-timer/eternal_timer_gui.py "$@"
34
EOF
35
36
install -Dm755 /dev/stdin "$pkgdir/usr/bin/etimer" <<'EOF'
37
#!/bin/sh
38
exec python3 /usr/lib/eternal-timer/etimer "$@"
39
EOF
40
41
# --- desktop entry + icon ---
42
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/eternal-timer.desktop" <<'EOF'
43
[Desktop Entry]
44
Type=Application
45
Name=Eternal Timer
46
Comment=Multi-timer and stopwatch that survives shutdowns
47
Exec=eternal-timer
48
Icon=eternal-timer
49
Terminal=false
50
Categories=Utility;
51
EOF
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]
61
Type=Application
62
Name=Eternal Timer check
63
Comment=Checks for finished timers at login and notifies
64
Exec=etimer check
65
Terminal=false
66
X-GNOME-Autostart-enabled=true
67
NoDisplay=true
68
EOF
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]
76
Description=Eternal Timer finish check
77
78
[Service]
79
Type=oneshot
80
ExecStart=/usr/bin/etimer check
81
EOF
82
83
install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/user/eternal-timer-check.timer" <<'EOF'
84
[Unit]
85
Description=Run Eternal Timer check every minute
86
87
[Timer]
88
OnBootSec=30s
89
OnUnitActiveSec=60s
90
Persistent=true
91
92
[Install]
93
WantedBy=timers.target
94
EOF
95
96
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
97
}
98
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-26 05:43:49 | Low | 1 |