# Maintainer: Pavel Ordenko # This PKGBUILD based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=i3lock-lixxia-git pkgname=i3lock-cac03-git pkgver=22bfcb pkgrel=1 pkgdesc="An improved screenlocker based upon XCB and PAM (cac03 fork) with clock, layout indicator, CAPS indicator" arch=('i686' 'x86_64') url="https://github.com/cac03/i3lock" license=('MIT') groups=("i3") depends=('xcb-util-image' 'libev' 'cairo' 'libxkbcommon-x11') options=('docs') provides=('i3lock') conflicts=('i3lock') replaces=('i3lock') backup=("etc/pam.d/i3lock") source=("git://github.com/cac03/i3lock.git") md5sums=('SKIP') pkgver() { cd "${srcdir}/i3lock" git describe --always | cut -c2- | tr "-" "." } build() { cd "${srcdir}/i3lock" make gzip i3lock.1 } package() { cd "${srcdir}/i3lock" make DESTDIR="${pkgdir}" install install -Dm644 i3lock.1.gz ${pkgdir}/usr/share/man/man1/i3lock.1.gz install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE make clean }