# Contributor: Henrik Riomar # Contributor: # Contributor: Michał Polański # Maintainer: Jakub Jirutka pkgname=swaylock-effects pkgver=1.6.11 pkgrel=1 pkgdesc="Screen locker for Wayland with fancy effects" url="https://github.com/jirutka/swaylock-effects" arch="all" license="MIT" options="!check" # no test suite makedepends=" cairo-dev libxkbcommon-dev linux-pam-dev meson ninja scdoc wayland-dev wayland-protocols " provider_priority=10 # lowest (other provider is swaylock aport) provides="swaylock" subpackages="$pkgname-dbg $pkgname-doc" source="https://github.com/jirutka/swaylock-effects/archive/v$pkgver/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare sed -i 's/login/base-auth/g' pam/swaylock cat <<-__EOF__ >> pam/swaylock # Unlock GNOME Keyring if available -auth optional pam_gnome_keyring.so -session optional pam_gnome_keyring.so auto_start # Unlock KWallet if available -auth optional pam_kwallet.so -auth optional pam_kwallet5.so -session optional pam_kwallet.so auto_start -session optional pam_kwallet5.so auto_start __EOF__ } build() { # NOTE: completions are the same as the original swaylock provides. abuild-meson \ -Dgdk-pixbuf=disabled \ -Dbash-completions=false \ -Dfish-completions=false \ -Dzsh-completions=false \ . output meson compile -C output --verbose } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } dbg() { depends="!swaylock-dbg" default_dbg } doc() { provider_priority=10 # lowest (other provider is swaylock aport) provides="swaylock-doc" default_doc } sha512sums=" ae8b5c5c36b11cb001a5dd30473051776962632675cde471d51ccfef000f44b5c279b3ac544040e854de6dc1a62eb8edccd5613fa1354795b40b3bd1cfba06a1 swaylock-effects-1.6.11.tar.gz "