blob: 742afab274eabae9fc28d9bee98d36c4574b451e (
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
|
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=i3lock
pkgver=2.7
pkgrel=0
pkgdesc="An improved screenlocker based upon XCB and PAM"
url="http://i3wm.org/i3lock/"
arch="all"
license="MIT"
depends=""
depends_dev="libev-dev cairo-dev linux-pam-dev libxkbcommon-dev xcb-util-image-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="$url/$pkgname-$pkgver.tar.bz2" # cflags.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
# Fix ticket FS#31544, sed line taken from gentoo
sed -i -e 's:login:base-auth:g' i3lock.pam
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
install -m755 -d "${pkgdir}/usr/share/man/man1/"
install -m644 ${pkgname}.1 "${pkgdir}/usr/share/man/man1/"
}
md5sums="7ac6cc52a08be10536d3f8d32cb83b45 i3lock-2.7.tar.bz2"
sha256sums="6882183ed0eca439e3ad1ae3e9d48b4d0a0b6f075e3850b46bf84aec97538fe2 i3lock-2.7.tar.bz2"
sha512sums="7945d142d239fe7f8985c1000e22db0532456939e65ee855f12e364092808d0cc09cc818b1189e32d88c872ce00033c41c8ebefe62349630872815adaf8b3899 i3lock-2.7.tar.bz2"
|