APKBUILD 1.01 KB
Newer Older
Johannes Matheis's avatar
Johannes Matheis committed
1
2
3
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=i3lock
alice's avatar
alice committed
4
pkgver=2.14.1
Daniel Sabogal's avatar
Daniel Sabogal committed
5
pkgrel=0
Johannes Matheis's avatar
Johannes Matheis committed
6
pkgdesc="An improved screenlocker based upon XCB and PAM"
7
url="https://i3wm.org/i3lock/"
Johannes Matheis's avatar
Johannes Matheis committed
8
9
arch="all"
license="MIT"
10
depends="xkeyboard-config"
alice's avatar
alice committed
11
12
13
14
15
16
17
18
19
makedepends="
	cairo-dev
	libev-dev
	libxkbcommon-dev
	linux-pam-dev
	meson
	xcb-util-image-dev
	xcb-util-xrm-dev
	"
Johannes Matheis's avatar
Johannes Matheis committed
20
subpackages="$pkgname-doc"
alice's avatar
alice committed
21
source="https://i3wm.org/i3lock/i3lock-$pkgver.tar.xz"
alice's avatar
alice committed
22
23
# fails if running under a wayland session even for version output
options="!check"
Daniel Sabogal's avatar
Daniel Sabogal committed
24

Johannes Matheis's avatar
Johannes Matheis committed
25
prepare() {
Daniel Sabogal's avatar
Daniel Sabogal committed
26
	default_prepare
Daniel Sabogal's avatar
Daniel Sabogal committed
27

Johannes Matheis's avatar
Johannes Matheis committed
28
	# Fix ticket FS#31544, sed line taken from gentoo
prspkt's avatar
prspkt committed
29
	sed -i -e 's:login:base-auth:g' pam/i3lock
Johannes Matheis's avatar
Johannes Matheis committed
30
31
32
}

build() {
alice's avatar
alice committed
33
34
	abuild-meson . output
	meson compile -C output
Daniel Sabogal's avatar
Daniel Sabogal committed
35
36
37
}

check() {
alice's avatar
alice committed
38
	./output/i3lock -v
Johannes Matheis's avatar
Johannes Matheis committed
39
40
41
}

package() {
alice's avatar
alice committed
42
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
Johannes Matheis's avatar
Johannes Matheis committed
43
44
}

alice's avatar
alice committed
45
sha512sums="
alice's avatar
alice committed
46
63b6bd73f66654fe52639434f7d3da64006144ec2ed685ba8683186730d4cc2c10d5aa66174f965030030243f59afaf6def3ff732f710ae441410218f84d6deb  i3lock-2.14.1.tar.xz
alice's avatar
alice committed
47
"