Package Details: stretchly-git 960.86c901e-1

Git Clone URL: https://aur.archlinux.org/stretchly-git.git (read-only, click to copy)
Package Base: stretchly-git
Description: The break time reminder app
Upstream URL: https://github.com/hovancik/stretchly/
Licenses: BSD
Conflicts: stretchly, stretchly-bin
Provides: stretchly
Submitter: lkrms
Maintainer: lkrms
Last Packager: lkrms
Votes: 1
Popularity: 0.066717
First Submitted: 2020-11-03 07:27
Last Updated: 2021-06-17 12:34

Latest Comments

slimb commented on 2021-07-20 00:18

The systemd unit was added upstream in examples/stretchly.service

slimb commented on 2021-06-26 19:22

nvm is a shell function and which can only resolve commands

Thanks for adding. Maybe the author was lazy since it works on zsh. You should update the wiki with the better test example.

I'll look into submitting PR upstream - good call, thanks.

lkrms commented on 2021-06-21 06:02

Thanks for the feedback, @slimb. The _ensure_local_nvm example you referenced doesn't work as-is, because nvm is a shell function and which can only resolve commands, but I've added a corrected version to prepare() and build() for the benefit of those not building with chroot.

Thanks for the systemd unit, too. I won't add this to the PKGBUILD but you should open a PR on Stretchly's Github and see what they think of it :)

slimb commented on 2021-06-20 17:25

Here's a systemd user unit, which could for example, launch stretchly on startup.

If you add it to the PKGBUILD, it should be placed in /usr/lib/systemd/user/stretchly.service. If it doesn't get added to the PKGBUILD, users wanting to install it manually should place in ~/.config/systemd/user/stretchly.service

[Unit]
Description="Start stretchly"
After=default.target

[Service]
Type=simple
ExecStartPre=/bin/sleep 1
ExecStart=/usr/bin/stretchly
Restart=on-failure
RestartSec=10
KillMode=process

[Install]
WantedBy=default.target

slimb commented on 2021-06-12 21:33

Thanks for the PKGBUILD.

init-nvm.sh needs to be sourced in build() function too

Archwiki has an example function _ensure_local_nvm() which could be used https://wiki.archlinux.org/title/Node.js_package_guidelines#Using_nvm