Package Details: stretchly-git 1135.8a6068a-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.000176
First Submitted: 2020-11-03 07:27 (UTC)
Last Updated: 2022-04-18 09:19 (UTC)

Latest Comments

xeruf commented on 2022-06-05 23:21 (UTC)

indeed, that did it. Weird.

lkrms commented on 2022-05-12 09:52 (UTC)

Hi xeruf, I can’t replicate that issue here, but from the log you posted, it looks like your package build directory is dirty. Can you try deleting src and any other leftovers from your earlier build and let me know how you go?

xeruf commented on 2022-05-06 16:10 (UTC)

Unfortunately not:

==> Starting pkgver()...
==> Updated version: stretchly-git 1138.a6c7a67-1
==> Sources are ready.
==> Making package: stretchly-git 1138.a6c7a67-1 (2022-05-06T18:08:01 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
No .nvmrc file found
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: stretchly-git

lkrms commented on 2022-04-18 09:57 (UTC)

Sorry I didn't see your comment earlier, @xeruf. I updated the stretchly package when electron was updated, but overlooked this one. Hopefully all good now.

xeruf commented on 2022-04-12 10:01 (UTC) (edited on 2022-04-12 10:12 (UTC) by xeruf)

Oof, why do only AUR packages provide electron...

❯ pacman -Q | grep electron
electron 18.0.1-1
electron12 12.2.3-3
electron13 13.6.9-2
electron15 15.5.1-1
electron8-bin 1:8.5.5-3
❯ makepkg -si
==> Making package: stretchly-git 1084.5bb8047-1 (2022-04-12T11:59:44 CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: electron<18
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> electron<18
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

https://bugs.archlinux.org/task/65280

lkrms commented on 2022-02-26 07:41 (UTC)

@slimb unfortunately the fix mentioned in the PR didn’t resolve the issue, otherwise I wouldn’t have needed to switch in the first place (I actually updated the PKGBUILD after the PR was merged).

The latest release of Stretchly has moved to electron 17, so once Arch moves to 17 I’ll test again and hopefully return to using the system’s electron.

slimb commented on 2022-02-25 19:03 (UTC)

I noticed upstream implemented a workaround to the no text electron issue. Can you revert back to system electron? https://github.com/hovancik/stretchly/pull/1073

slimb commented on 2021-07-20 00:18 (UTC)

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

slimb commented on 2021-06-26 19:22 (UTC)

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 (UTC)

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 (UTC)

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 (UTC) (edited on 2021-06-12 21:33 (UTC) by slimb)

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