user/swalock-mobile: new aport #1794

Closed
forge wants to merge 1 commit from swaylock-mobile/initial into edge
2 changed files with 2746 additions and 0 deletions

View file

@ -0,0 +1,78 @@
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=swaylock-mobile
pkgver=1.6.11
_pkgver=${pkgver/_/-}
pkgrel=0
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=$pkgver-r$pkgrel"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://github.com/jirutka/swaylock-effects/archive/v$_pkgver/$pkgname-$_pkgver.tar.gz
add-mobile-keypad.patch"
builddir="$srcdir/swaylock-effects-$_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_kwallet5.so
-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-mobile-1.6.11.tar.gz
756b1a84fc33ffd8480b460512704aec5270e9d39a2a4af66968860bc59d077b42e00ff6948f07da871ddd1dcb2d16af2abac8c4e7f20dbc0986f3d88b4e5fa3 add-mobile-keypad.patch
"

File diff suppressed because it is too large Load diff