blob: 667ba37e1ef4a5e120f21f16a6c6e15ff4308b87 (
plain)
1 # Description: greetd is a minimal and flexible login manager daemon
2 # URL: https://kl.wtf/projects/greetd/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5 # Optional: scdoc
6
7 name=greetd
8 version=0.9.0
9 release=1
10 source=(https://git.sr.ht/~kennylevinsen/greetd/archive/$version.tar.gz
11 greetd.pam greetd.service)
12 renames=($name-$version.tar.gz SKIP SKIP)
13
14 build() {
15 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
16 mkdir "$PKGMK_SOURCE_DIR/rust" || true
17 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
18
19 cargo build --release --manifest-path $name-$version/Cargo.toml
20
21 install -Dt $PKG/usr/bin $name-$version/target/release/greetd
22 install -Dt $PKG/usr/bin $name-$version/target/release/agreety
23 install -Dt $PKG/etc/greetd $name-$version/config.toml
24
25 ## needs scdoc
26 prt-get isinst scdoc && (
27 cd $name-$version/man
28 for i in *scd; do
29 scdoc < "$i"> "$(basename "$i")".roff
30 done
31 install -Dm755 agreety-1.scd.roff $PKG/usr/share/man/man1/agreety.1
32 install -Dm755 greetd-1.scd.roff $PKG/usr/share/man/man1/greetd.1
33 install -Dm755 greetd-5.scd.roff $PKG/usr/share/man/man5/greetd.5
34 install -Dm755 greetd-ipc-7.scd.roff $PKG/usr/share/man/man7/greetd-ipc.7)
35
36 # install pam configuration
37 install -Dm644 $SRC/greetd.pam $PKG/etc/pam.d/greetd
38 # install service file
39 install -Dm755 $SRC/greetd.service $PKG/etc/rc.d/greetd
40 }
|