# Contributor: Johannes Matheis # Maintainer: Johannes Matheis pkgname=i3lock pkgver=2.13 pkgrel=0 pkgdesc="An improved screenlocker based upon XCB and PAM" url="https://i3wm.org/i3lock/" arch="all" license="MIT" depends="xkeyboard-config" makedepends="libev-dev cairo-dev linux-pam-dev libxkbcommon-dev xcb-util-image-dev xcb-util-xrm-dev" subpackages="$pkgname-doc" source="https://i3wm.org/i3lock/i3lock-$pkgver.tar.bz2" prepare() { default_prepare # Fix ticket FS#31544, sed line taken from gentoo sed -i -e 's:login:base-auth:g' pam/i3lock } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-builddir make } check() { ./i3lock -v } package() { make DESTDIR="$pkgdir" install } sha512sums="3a9bed3d14a2d59e641b3603448bb46d769104995b1c0239eca87d582e80e64dd8905b8e455bd5b0e635d4b37d7a87208d8de37253e9af799c65f4f8d396789d i3lock-2.13.tar.bz2"