# Template file for 'i3lock-color'
pkgname=i3lock-color
version=2.13.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=46f15cbbf339873266e014f70b5e1ec02177f0295302b615a7bd85bef40d8ad2
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
}
