Package Details: swaylock-git 1.7.2.r18.g91bb968-1

Git Clone URL: https://aur.archlinux.org/swaylock-git.git (read-only, click to copy)
Package Base: swaylock-git
Description: Screen locker for Wayland (git development version)
Upstream URL: https://github.com/swaywm/swaylock
Keywords: development git lock locker screen swaylock wayland
Licenses: MIT
Conflicts: swaylock
Provides: swaylock
Submitter: gilbus
Maintainer: GreyXor
Last Packager: GreyXor
Votes: 13
Popularity: 0.000793
First Submitted: 2019-01-14 10:14 (UTC)
Last Updated: 2023-12-30 15:52 (UTC)

Required by (34)

Sources (1)

Latest Comments

1 2 Next › Last »

GreyXor commented on 2023-12-30 16:14 (UTC) (edited on 2024-01-04 16:52 (UTC) by GreyXor)

Certainly, xiota! If it occurs, I'll take care of it. Feel free to provide feedback on the other sway packages I oversee.

xiota commented on 2023-12-30 16:02 (UTC)

Thanks for updating. Just so you're aware, you may have to add versioned depends if any packages use versioned depends in the future.

For reference: provides=("${pkgname%-git}=${pkgver%%.r*}")

xiota commented on 2023-12-30 13:54 (UTC) (edited on 2023-12-30 13:54 (UTC) by xiota)

Having version numbers that are comparable makes the packages easier to compare. Is r317 newer or older than 1.7.3. If the git package is being used to work around bugs, should the user try the stable version or rebuild the git package? It's also necessary to correctly version provides.

provides=("${pkgname%-git}=${pkgver%%.r*}")

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

GreyXor commented on 2023-12-30 10:32 (UTC)

Hello xiota, sure but can you explain why it's important to having similar pkgver between swaylock and swaylock-git ? Something like the first one would suit it well ? https://wiki.archlinux.org/title/VCS_package_guidelines#Git

Let me know and I'll change it

xiota commented on 2023-12-30 03:47 (UTC)

Please update pkgver() to use version format #.r#.g# so that they are comparable with extra/swaylock releases.

xiretza commented on 2023-09-24 12:52 (UTC)

Also, as noted previously, please remove the --strip from the meson invocation.

primalmotion commented on 2023-02-23 21:31 (UTC)

I have adopted the package and applied the patch I've send previously.

primalmotion commented on 2023-02-03 20:34 (UTC) (edited on 2023-02-03 20:49 (UTC) by primalmotion)

Hi,

Swaylock seems to have changed their tagging, by prefixing with v (v1.7.x instead of 1.7). This seems to cause weirdness in yay for instance where it continuously want to downgrade the package:

1  aur/swaylock-git  v1.7.2.r2.gac3b49b-1 -> 1.4.r15.gdee0021-1

This patch should fix the issue:

From 4a15ac99e42bad2ee0dd9ef97e35632225d56a77 Mon Sep 17 00:00:00 2001
From: primalmotion <primalmotion@pm.me>
Date: Fri, 3 Feb 2023 12:31:23 -0800
Subject: [PATCH] bump pkgver

---
 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index a00b533..606c366 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
 # Contributor: gilbus <aur@tinkershell.eu>
 pkgname=swaylock-git
-pkgver=1.4.r15.gdee0021
+pkgver=v1.7.2.r2.gac3b49b
 pkgrel=1
 pkgdesc='Screen locker for Wayland '
 url='https://github.com/swaywm/swaylock'
--
2.39.1

xiretza commented on 2022-01-03 13:58 (UTC)

What's the deal with passing --strip to meson? Some people like to have working debug packages, you know... I could find no evidence of makepkg being "unable to strip the binary" (the commit introducing this issue offers absolutely no explanation either...), so please fix this.