void-packages/srcpkgs/nodm/template

28 lines
793 B
Bash

# Template file for 'nodm'
pkgname=nodm
version=0.12
revision=1
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"
homepage="https://github.com/spanezz/nodm"
distfiles="${homepage}/archive/debian/${version}-1.tar.gz"
checksum=840939d27d3d9b02ad09e1cffce24729bcdeee6cea6b3f0037d8ae76b49feecd
wrksrc=nodm-debian-${version}-1
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
}