summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4824ead5f174746f8f00cb7085546d1a3a70a0ff (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Adrien Sohier <adrien.sohier@art-software.fr>

pkgname=i3lock-lixxia-git
pkgver=ff1273
pkgrel=2
pkgdesc="An improved screenlocker based upon XCB and PAM (Lixxia fork)"
arch=('i686' 'x86_64')
url="https://github.com/Lixxia/i3lock"
license=('MIT')
groups=("i3")
depends=('xcb-util-image' 'libev' 'cairo' 'libxkbcommon-x11')
options=('docs')
replaces=('i3lock')
provides=('i3lock')
conflicts=('i3lock')
backup=("etc/pam.d/i3lock")
source=("git://github.com/Lixxia/i3lock.git"
        "24hour.patch")
md5sums=('SKIP'
         '03a4b583be31541921d3392984c95cba')

pkgver() {
  cd "${srcdir}/i3lock"
  git describe --always | cut -c2- | tr "-" "."
}

prepare() {
    cd "${srcdir}/i3lock"
    patch -Np1 -i "${srcdir}/24hour.patch"
}

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
}

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