summaryrefslogtreecommitdiff
path: root/x11-themes/background-lnxpcs/background-lnxpcs-0.3.ebuild
blob: 511ee9d6d608efeb2d21627280189c72cf3884ab (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
EAPI=6

DESCRIPTION="Background pictures from lnxpcs and relevant scripts"
HOMEPAGE="https://gitlab.com/jstpcs/lnxpcs"

HASH="99cf0bdafe6d9c6e0554c422eddc3f7b7adf25c8"
SRC_URI="https://gitlab.com/jstpcs/lnxpcs/-/archive/${HASH}/lnxpcs-${HASH}.tar.gz -> ${PN}.tar.gz"
S="${WORKDIR}/lnxpcs-${HASH}"

KEYWORDS="amd64"
LICENSE="GPL-3.0+"
SLOT="0"
IUSE="1440p"

DEPENDS="media-gfx/imagemagick[png]"
RDEPEND="
	x11-misc/i3lock
	media-gfx/feh[xinerama]"

WALLPAPERS="bash cron gcc gnu gnu-linux iptables kernel kill python root su sudo vim"

src_compile() {
	local RESOL="1920 1080"
	if use 1440p; then
		RESOL="2560 1440"
	fi
	for IMG in $WALLPAPERS; do
		./makemywall $RESOL "cards/black/$IMG-card-black.png"
	done
}

src_install() {
	local RES="1920x1080"
	if use 1440p; then
		RES="2560x1440"
	fi
	insinto "/usr/share/backgrounds"
	for IMG in $WALLPAPERS; do
		doins "$IMG-card-black-$RES.png"
	done
	dobin "${FILESDIR}/i3background"
	dobin "${FILESDIR}/i3lock-lnxpcs"
}