Package Details: swaylock-plugin 1.8.6-2

Git Clone URL: https://aur.archlinux.org/swaylock-plugin.git (read-only, click to copy)
Package Base: swaylock-plugin
Description: A fork of the swaylock screen locker for Wayland supporting custom wallpaper drawing programs
Upstream URL: https://github.com/mstoeckl/swaylock-plugin
Keywords: sway, wayland
Licenses: MIT
Submitter: mstoeckl
Maintainer: mstoeckl
Last Packager: mstoeckl
Votes: 1
Popularity: 0.020087
First Submitted: 2025-03-20 21:39 (UTC)
Last Updated: 2026-03-19 10:56 (UTC)

Latest Comments

mstoeckl commented on 2026-03-22 00:14 (UTC)

Can you modify the build function in PKGBUILD to allow it to work with non-systemd systems?

No, sorry. I do not think that AUR packages should do this sort of dependency auto-detection. Depending on what exactly you need, I'd recommend that you maintain a fork of this package which requires elogind, make a custom elogind shim package that provides systemd-libs, or (if you don't need the grace period feature) make a fork of the package which has the logind meson option disabled.

gojkira commented on 2026-03-21 23:04 (UTC)

Can you modify the build function in PKGBUILD to allow it to work with non-systemd systems?

build() {
    # Detect if libsystemd is missing and libelogind is present
    if ! pkg-config --exists libsystemd && pkg-config --exists libelogind; then
        echo "Configuring build shim for libelogind..."
        mkdir -p "${srcdir}/pkgconfig-shim"

        # Determine the actual path of the .pc file to avoid hardcoding /usr/lib
        local _elogind_pc
        _elogind_pc=$(pkg-config --variable=pcfiledir libelogind)/libelogind.pc

        ln -sf "$_elogind_pc" "${srcdir}/pkgconfig-shim/libsystemd.pc"
        export PKG_CONFIG_PATH="${srcdir}/pkgconfig-shim:$PKG_CONFIG_PATH"
    fi

    arch-meson "$pkgname-$pkgver" build
    meson compile -C build
}

This works for me with elogind/runit but have not tested it with systemd.

Neumo commented on 2026-03-19 05:38 (UTC)

Would you like to add /etc/pam.d/swaylock-plugin to the backup list?

backup=(/etc/pam.d/swaylock-plugin)

As this configuration is frequently customized for PAM integrations like fprint, including it in the backup array would ensure that user modifications are preserved across upgrades.

Neumo commented on 2025-08-11 13:02 (UTC)

The package wayland-protocols to build swaylock-plugin is not included in the dependencies. That will result in an error:

Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wayland-protocols
ERROR: Subproject wayland-protocols is buildable: NO