void-packages/srcpkgs/nodm/template

27 lines
783 B
Bash

# Template file for 'nodm'
pkgname=nodm
version=0.13
revision=2
build_style=gnu-configure
hostmakedepends="help2man automake pkg-config"
makedepends="pam-devel xorg-server-devel"
short_desc="Minimalistic display manager for automatic logins"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://github.com/spanezz/nodm"
distfiles="https://github.com/spanezz/nodm/archive/${version}.tar.gz"
checksum=ef11667ae82846801a9633df36c20f632cc03319bb1da35f062ac0f950771273
pre_configure() {
if [ "$CROSS_BUILD" ]; then
# disable generating a man page with help2man while cross compiling.
# nodm -h needs to be executed on the host for generating it.
sed -i Makefile.am -e 's;man_MANS = nodm.8;;g'
fi
./autogen.sh
}
post_install() {
vsv nodm
}