# Maintainer: Ondřej Hruška # Original author: Anselm R Garbe pkgname=slock-xtra-git _pkgname=slock pkgver=1.3.1.1.gee40bb3 pkgrel=1 pkgdesc='Simple X display locker with adjustable color, auto-unlock option and WM_NAME = "slock"' url='https://github.com/MightyPork/slock' arch=('i686' 'x86_64' 'armv7h') license=('MIT') depends=('libx11') conflicts=('slock') makedepends=('libxext' 'git') source=('git://github.com/MightyPork/slock') sha1sums=('SKIP') provides=("${_pkgname}") conflicts=("${_pkgname}") pkgver() { cd "${srcdir}/${_pkgname}" git describe --tags | sed "s|-|.|g" } build() { cd "${srcdir}/${_pkgname}" make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 } package() { cd "${srcdir}/${_pkgname}" make PREFIX=/usr DESTDIR="${pkgdir}" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }