summaryrefslogtreecommitdiff
path: root/user/i3lock/APKBUILD
blob: 7d04a82af91b627c57a3a7d09e85f56ebc0401cf (plain) (blame)
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
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=i3lock
pkgver=2.11.1
pkgrel=0
pkgdesc="Simple X11 screen locker"
url="https://i3wm.org/i3lock/"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends="xkeyboard-config"
makedepends="cairo-dev libev-dev libxkbcommon-dev linux-pam-dev cmd:which
	xcb-util-image-dev xcb-util-xrm-dev"
subpackages="$pkgname-doc"
source="$url/$pkgname-$pkgver.tar.bz2"

prepare() {
	default_prepare
	# At present, this has no functional difference.
	# But when we start developing our PAM stack into something more
	# mature, this will be important, because i3lock runs unprivileged.
	sed -i -e 's:login:base-auth:g' pam/i3lock
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var

	make
}

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

sha512sums="8b779aa0a560884adc1a508e1f07f712bdf043f72c377c24d5e7e186a6b97f34a5bda7aa67de41f5e15a1a541f4a2c2d28bc284057926a5833d70b67437d073c  i3lock-2.11.1.tar.bz2"