# Template file for 'i3lock'
pkgname=i3lock
version=2.5
revision=2
hostmakedepends="which pkg-config"
makedepends="libev-devel cairo-devel pam-devel libxkbcommon-devel
 xcb-util-devel libxkbfile-devel xcb-util-image-devel xcb-util-keysyms-devel"
conf_files="/etc/pam.d/i3lock"
short_desc="An improved screenlocker based upon XCB and PAM"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="http://i3wm.org/i3lock/"
distfiles="http://i3wm.org/i3lock/i3lock-${version}.tar.bz2"
checksum=ac2772c9e4fc13adb882cacaae13ccc381d6d4f154ffd538634a58e6369d0d77

do_build() {
	export CFLAGS="$CFLAGS -std=c99"
	make ${makejobs}
}

do_install() {
	make DESTDIR=${DESTDIR} install
	vinstall i3lock.1 644 usr/share/man/man1
}
