aboutsummaryrefslogtreecommitdiffstats
path: root/community/i3lock/APKBUILD
blob: 5a86b523916355eef39169b7d7139246742ede86 (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
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=i3lock
pkgver=2.11.1
pkgrel=0
pkgdesc="An improved screenlocker based upon XCB and PAM"
url="https://i3wm.org/i3lock/"
arch="all"
license="MIT"
depends="xkeyboard-config"
makedepends="libev-dev cairo-dev linux-pam-dev libxkbcommon-dev
	xcb-util-image-dev xcb-util-xrm-dev"
subpackages="$pkgname-doc"
source="https://i3wm.org/i3lock/i3lock-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	# Fix ticket FS#31544, sed line taken from gentoo
	sed -i -e 's:login:base-auth:g' pam/i3lock
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-builddir
	make
}

check() {
	cd "$builddir"
	./i3lock -v
}

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

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