greetd: fix manpage generation on cross

This commit is contained in:
classabbyamp 2024-12-07 15:03:06 -05:00
parent 4f4f7e7c67
commit 8f59ff1820
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'greetd' # Template file for 'greetd'
pkgname=greetd pkgname=greetd
version=0.10.3 version=0.10.3
revision=1 revision=2
build_style=cargo build_style=cargo
conf_files="/etc/greetd/config.toml" conf_files="/etc/greetd/config.toml"
hostmakedepends="pkg-config scdoc" hostmakedepends="pkg-config scdoc"
@ -19,6 +19,11 @@ _greeter_groups="video"
_greeter_homedir="/var/lib/_greeter" _greeter_homedir="/var/lib/_greeter"
make_dirs="/var/lib/_greeter 0755 _greeter _greeter" make_dirs="/var/lib/_greeter 0755 _greeter _greeter"
post_patch() {
# on cross, tries to find scdoc for the target and fails
vsed -i -e 's,pkg-config,/usr/bin/&,' man/Makefile
}
pre_build() { pre_build() {
make -C man make -C man
} }