blob: c751e6cece890e956aba3067b943526affeaae41 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Maintainer: Kenny Levinsen <aur [at] kl [dot] wtf>
pkgname=greetd-git
pkgver=0.7.0
pkgrel=1
pkgdesc="Generic greeter daemon"
arch=(x86_64)
url="https://git.sr.ht/~kennylevinsen/greetd"
license=(GPL3)
source=("git+$url" 'greetd.pam')
sha256sums=('SKIP'
'993a3096c2b113e6800f2abbd5d4233ebf1a97eef423990d3187d665d3490b92')
conflicts=(greetd)
provides=(greetd=${pkgver%+*})
depends=(systemd pam)
makedepends=(git rust scdoc)
optdepends=(
'greetd-gtkgreet: Simple GTK based greeter'
'greetd-dlm: Dumb Login Manager'
'greetd-wlgreet: Wayland greeter'
)
backup=(
'etc/greetd/config.toml'
'etc/pam.d/greetd'
)
pkgver() {
git -C greetd describe --abbrev=10 | sed 's/-/+/; s/-/./'
}
build() {
cd greetd
RUSTFLAGS="--remap-path-prefix=$(pwd)=/build/" cargo build --release --locked
cd man
for i in *.scd
do
scdoc < "$i" > "$(basename "$i" .scd)".roff
done
}
package() {
install -Dm755 "$srcdir/greetd/target/release/greetd" \
"$pkgdir/usr/bin/greetd"
install -Dm755 "$srcdir/greetd/target/release/agreety" \
"$pkgdir/usr/bin/agreety"
(
cd greetd/man
for s in 1 5 7
do
install -d "$pkgdir/usr/share/man/man$s"
for i in *-$s.roff
do
install -m755 "$i" "$pkgdir/usr/share/man/man$s/${i%-*}.$s"
done
done
)
install -Dm644 "$srcdir/greetd/greetd.service" \
"$pkgdir/usr/lib/systemd/system/greetd.service"
echo 'u greeter - "greetd greeter user" - /bin/bash' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/greetd.conf"
install -Dm644 "$srcdir/greetd.pam" \
"$pkgdir/etc/pam.d/greetd"
install -Dm644 "$srcdir/greetd/config.toml" \
"$pkgdir/etc/greetd/config.toml"
}
|