# Template file for 'i3lock-color'
pkgname=i3lock-color
version=2.12.c.5
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config automake"
makedepends="libev-devel cairo-devel pam-devel libxkbcommon-devel xcb-util-devel
 xcb-util-image-devel xcb-util-xrm-devel libjpeg-turbo-devel"
short_desc="Screenlocker forked from i3lock with more features"
maintainer="jtalowell <jtalowell@protonmail.com>"
license="MIT"
homepage="https://github.com/Raymo111/i3lock-color"
distfiles="https://github.com/Raymo111/i3lock-color/archive/${version}.tar.gz"
checksum=62c9bdff2759186426b184ed45e4c1aae1dc3c582499d94da68d9b08662a96a9
conf_files="/etc/pam.d/i3lock"
conflicts="i3lock"

pre_configure() {
	autoreconf -i
}

pre_build() {
	vsed -i 's:login:system-auth:' pam/i3lock
}

post_install() {
	vlicense LICENSE
}
