summaryrefslogtreecommitdiff
blob: 1eac44f864a71dc8f03ffe32f87bb34448f91e5d (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils toolchain-funcs git-2

DESCRIPTION="Simple screen locker"
HOMEPAGE="https://github.com/meskarune/i3lock-fancy"
EGIT_REPO_URI="https://github.com/meskarune/i3lock-fancy.git"
EGIT_BRANCH=master

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

MY_PN=i3lock

RDEPEND="media-gfx/imagemagick[png]
	media-gfx/scrot
	media-libs/imlib2[png]
	x11-misc/i3lock-color"
DEPEND=""
DOCS=( README.md )

src_prepare() {
	path=/usr/share/${PN}
	sed -ie "s:SCRIPTPATH=.*:SCRIPTPATH=${path}:" lock || die
	epatch_user
}

src_install() {
	newbin lock ${PN}
	insinto /usr/share/${PN}
	doins icons/lock{,dark}.png
}