summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ccdd0750e65b54febe8fbc4b5fc3c1680e5e8cbf (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
# Maintainer: Ricardo Vieira <ricardo.vieira@tecnico.ulisboa.pt>
_pkgname=xsecurelock
pkgname=xsecurelock-git
pkgver=1.2.r7.gc75d8e2
pkgrel=1
pkgdesc="X11 screen lock utility with security in mind"
arch=('any')
url="https://github.com/google/xsecurelock"
license=('APACHEV2')
groups=()
depends=('libx11' 'pam')
makedepends=('git')
checkdepends=()
optdepends=('mplayer: for the saver_mplayer module'\
            'mpv: for the saver_mpv module'\
            'imagemagick: for the auth_pamtester module'\
            'pamtester: for the auth_pamtester module'\
            'xorg-xset: for the saver_blank module'\
            'xscreensaver: for the saver_xscreensaver module')
provides=('xsecurelock')
conflicts=('xsecurelock')
replaces=()
backup=()
options=()
install=
changelog=
source=("$_pkgname"::'git+https://github.com/google/xsecurelock.git#branch=master')
noextract=()
md5sums=('SKIP')

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

build() {
	cd "$_pkgname"
	sh autogen.sh
	./configure --prefix=/usr \
              --libexecdir=/usr/lib \
              --with-pam-service-name=system-auth
	make
}

package() {
	cd "$_pkgname"
	make DESTDIR="$pkgdir/" install
}