blob: 65c3704d59a0a4da4b86c3ea0ed71f4e3ea491a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/mkpkg
# description: screen locker for wayland compositors
# url: https://github.com/swaywm/swaylock
name=swaylock
version=1.8.6
release=1
depends=(wayland libxkbcommon cairo)
makedeps=(meson wayland-protocols)
source=(https://github.com/swaywm/swaylock/releases/download/v$version/$name-$version.tar.gz)
sha256sums=(
"a15154348fef852fdb224112d137c393c826478b777f63479beb15e8d3812eaf"
)
build() {
cd $name-$version
# musl provides crypt() in libc, no separate libcrypt exists.
# meson.build does: crypt = cc.find_library('crypt', required: not libpam.found())
# With PAM disabled this becomes required and fails on musl.
# Fix: make crypt library optional since symbols are in libc.
sed -i "s|cc.find_library('crypt', required: not libpam.found())|cc.find_library('crypt', required: false)|" meson.build
meson setup build \
--prefix=/usr \
-Dpam=disabled \
-Dgdk-pixbuf=disabled \
-Dman-pages=disabled \
-Dzsh-completions=false \
-Dbash-completions=false \
-Dfish-completions=false
ninja -C build
DESTDIR=$PKG ninja -C build install
# musl has native tcb/shadow support, no suid needed.
# If auth fails at runtime, uncomment:
# chmod u+s $PKG/usr/bin/swaylock
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|