summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8df87237929744f6d04d7d3538348fa1d759e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Jakub Klinkovsk√Ĺ <j.l.k@gmx.com>

pkgname=sxlock-git
_pkgname=sxlock
pkgver=1.1.r15.g76ac317
pkgrel=1
pkgdesc="Simple screen locker utility for X, fork of sflock. Uses PAM authentication, no suid needed."
arch=('i686' 'x86_64')
url="https://github.com/lahwaacz/sxlock"
license=('MIT')
depends=('libxext' 'libxrandr' 'pam')
makedepends=('git')
optdepends=('xorg-fonts-misc: default font')
source=('git://github.com/lahwaacz/sxlock.git')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --always | sed 's|^v||;s|\([^-]*-g\)|r\1|;s|-|.|g'
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: