-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
48 lines (41 loc) · 1.49 KB
/
PKGBUILD
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
# Maintainer: justbrowsing <[email protected]>
# Contributor: Thorsten Tapper <[email protected]>
# Contributor: jaseg <[email protected]>
pkgname=i3lock-spy
pkgver=2.4.4
pkgrel=1
pkgdesc="A screenlocker with intruder detection designed for JustBrowsing"
arch=('i686' 'x86_64' 'armv6h')
url="https://github.com/justbrowsing/i3lock-spy"
license=('MIT')
groups=("justbrowsing")
depends=('xcb-util-image' 'xcb-util-keysyms' 'pam' 'libev' 'cairo' 'fswebcam' 'v4l-utils')
optdepends=('wbar: To add a lockscreen panel in JustBrowsing'
'adeskbar: To add a lockscreen panel in jb-next')
makedepends=('unzip')
conflicts=('i3lock')
provides=('i3lock')
options=('docs')
backup=("etc/pam.d/i3lock")
source=("https://github.com/justbrowsing/i3lock-spy/archive/master.zip")
md5sums=('SKIP')
build() {
cd "$srcdir/${pkgname}-master"
make
}
package() {
cd "$srcdir/${pkgname}-master"
mkdir -p $pkgdir/usr/bin
cp i3lock-sentry $pkgdir/usr/bin/
chmod +x $pkgdir/usr/bin/i3lock-sentry
make DESTDIR="${pkgdir}" install
cp i3lock $pkgdir/usr/bin/i3lock
cp i3lock-spy $pkgdir/usr/bin/i3lock-spy
cp i3lock-spy-mouse $pkgdir/usr/bin/i3lock-spy-mouse
cp i3lock-spy-panel $pkgdir/usr/bin/i3lock-spy-panel
install -Dm644 sentry.css ${pkgdir}/etc/xdg/i3lock/sentry.css
install -Dm644 placeholder.png ${pkgdir}/etc/xdg/i3lock/placeholder.png
install -Dm644 i3lock.1.gz ${pkgdir}/usr/share/man/man1/i3lock.1.gz
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/i3lock/LICENSE
make clean
}