summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 654678613054114f9b785ae921a4a36167038b0d (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
# Maintainer: Ivy Foster <iff@archlinux.org>
# Reference: PKGBUILD(5)

pkgname=physlock
pkgver=13
pkgrel=5
pkgdesc='Lightweight Linux console locking tool'
url='https://github.com/muennich/physlock'
license=(GPL2)

depends=(pam)
optdepends=('xss-lock: lock screen on suspend or after inactivity')

arch=(x86_64)
# physlock.pam: see https://bugs.archlinux.org/index.php?do=details&task_id=61300
source=(
	"physlock-$pkgver.tar.gz::https://github.com/muennich/physlock/archive/v$pkgver.tar.gz"
	physlock.pam
)
backup=(etc/pam.d/physlock)
# sha256sums provided by packager; grains of salt advised
sha256sums=(
	9ae4716a1e916f141e47a01b439133ca382281ebdcbec1e53f85da6771774bd6
	de66118684a2ecec18017dd96e50a489f30465510250c007ced16f81fb542ba5
)

build() {
	make PREFIX=/usr -C "physlock-$pkgver"
}

package() {
	install -D -m 644 physlock.pam "$pkgdir/etc/pam.d/physlock"
	make PREFIX=/usr "DESTDIR=$pkgdir" -C "physlock-$pkgver" install
}