summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75ad6689320913f04c6fd5a0ea3d7fa967f3605a (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
50
51
52
# Maintainer: Sevan Murriguian--Watrin <sevan@cri.epita.fr>

pkgname=i3lock-cri
pkgver=2.12.cri
pkgrel=0
pkgdesc="An improved screenlocker based upon XCB and PAM - cri's version"
arch=('i686' 'x86_64')
url="https://github.com/epita/i3lock/"
license=('MIT')
groups=('i3')
provides=('i3lock')
conflicts=('i3lock')
depends=('xcb-util-image' 'xcb-util-xrm' 'libev' 'cairo' 'libxkbcommon-x11' 'pam' 'systemd')
backup=("etc/pam.d/i3lock")
options=('docs')
makedepends=('git')
source=('git://github.com/epita/i3lock#branch=master')
sha1sums=('SKIP')

_gitname='i3lock'

build() {
    cd "$_gitname"

  # Fix ticket FS#31544, sed line taken from gentoo
  sed -i -e 's:login:system-auth:' pam/i3lock

  autoreconf --force --install

  rm -rf build/
  mkdir -p build && cd build/

  ../configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --disable-sanitizers

  # See https://lists.archlinux.org/pipermail/arch-dev-public/2013-April/024776.html
  make CPPFLAGS+="-U_FORTIFY_SOURCE"
}

package() {
    cd "$_gitname"
    cd build/

    make DESTDIR="$pkgdir/" install

    install -Dm644 ../LICENSE \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

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