48 lines
789 B
Bash
48 lines
789 B
Bash
# Copyright 1999-2018 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
inherit autotools toolchain-funcs
|
|
|
|
DESCRIPTION="Simple screen locker"
|
|
HOMEPAGE="https://i3wm.org/i3lock/"
|
|
SRC_URI="https://i3wm.org/${PN}/${P}.tar.bz2"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
|
|
|
RDEPEND="
|
|
>=x11-libs/libxkbcommon-0.5.0[X]
|
|
dev-libs/libev
|
|
virtual/pam
|
|
x11-libs/cairo[xcb]
|
|
x11-libs/libxcb[xkb]
|
|
x11-libs/xcb-util
|
|
x11-libs/xcb-util-xrm
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
virtual/pkgconfig
|
|
"
|
|
DOCS=( CHANGELOG README.md )
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-2.11-version.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
echo ${PV} > I3LOCK_VERSION
|
|
|
|
sed -i -e 's:login:system-auth:' pam/${PN} || die
|
|
|
|
eautoreconf
|
|
|
|
tc-export CC
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
doman ${PN}.1
|
|
}
|