# Template file for 'cdm'
pkgname=cdm
version=0.7
revision=3
depends="dialog xinit kbd xdpyinfo"
short_desc="Console Display Manager"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="https://github.com/evertiro/cdm"
distfiles="https://github.com/evertiro/cdm/archive/${version}.tar.gz"
checksum=530042165ce65cdff3ec62ba9f077d0e8c6744c13f5d449d84fe2506a79d2e56

do_install() {
	sed -i 's| /| $PKGDESTDIR/|g' install.sh
	PKGDESTDIR="$PKGDESTDIR" ./install.sh

	vmkdir etc/profile.d
	vinstall src/profile.sh 755 etc/profile.d cdm.sh
}
