blob: f0c466cc423c02eee3adb36f6933a9e1304f51e2 (
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
49
50
51
52
53
54
55
|
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="sweet looking lockscreen for linux system"
HOMEPAGE="https://github.com/pavanjadhaw/betterlockscreen"
inherit systemd
if [[ "${PV}" == 9999 ]];then
inherit git-r3
EGIT_REPO_URI="${HOMEPAGE}"
else
SRC_URI="https://github.com/pavanjadhaw/betterlockscreen/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
DEPEND="
media-gfx/feh
media-gfx/imagemagick
sys-devel/bc
x11-apps/xdpyinfo
x11-apps/xrandr
>=x11-misc/i3lock-color-2.11:=
"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/00-fix-betterlockscreen-path-in-unit.patch" )
src_install() {
dobin betterlockscreen
dodoc -r examples
if [[ "${PV}" == 9999 ]] ; then
systemd_dounit system/betterlockscreen@.service
else
systemd_dounit betterlockscreen@.service
fi
}
pkg_postinst() {
elog 'Lockscreen when suspended(systemd service):'
elog 'systemctl enable betterlockscreen@$USER'
elog ''
elog 'How to use:'
elog '1. Updating image cache(required)'
elog 'betterlockscreen -u ~/Pictures'
elog '2. Lockscreen'
elog 'betterlockscreen -l dim '
}
|