aboutsummaryrefslogtreecommitdiffstats
path: root/testing/i3lock-color/APKBUILD
blob: 7a7beb3620c3d8b034533cb245b63395ef524ca3 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=i3lock-color
pkgver=2.12.c
pkgrel=0
pkgdesc="Fork of i3lock with extras features"
url="https://github.com/PandorasFox/i3lock-color"
arch="all"
license="BSD-3-Clause"
makedepends="libxcb-dev xcb-util-dev linux-pam-dev cairo-dev
	xcb-util-image-dev fontconfig-dev libev-dev libxkbcommon-dev
	libjpeg-turbo-dev xcb-util-xrm-dev
	autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/PandorasFox/i3lock-color/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
	mkdir -p "$builddir"/build
}

build() {
	cd build
	../configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-sanitizers
	make
}

package() {
	make -C build DESTDIR="$pkgdir" install

	# Rename to avoid conflict with i3lock
	mv "$pkgdir"/usr/bin/i3lock "$pkgdir"/usr/bin/i3lock-color
	mv "$pkgdir"/usr/share/man/man1/i3lock.1 "$pkgdir"/usr/share/man/man1/i3lock-color.1
}

sha512sums="2b8ce7b9e41694c6edb2394ba8a47bc05051500aa2ca6f46e082989c7bfed8540e343ffaa514c32b2e2b75f91b224c5b2d5958f1478a6d02ca87726ec876c90e  i3lock-color-2.12.c.tar.gz"