meta-wayland/recipes-gtk/nwg-shell/azote_git.bb
Markus Volk 0c50cd6afa azote: add .azotebg file
azote will not work, if it doesn' exist
2023-02-01 09:31:20 +01:00

51 lines
1.3 KiB
BlitzBasic

SUMMARY = "Azote is a GTK+3 based frontend for swaybg."
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
SRC_URI = " \
git://github.com/nwg-piotr/azote.git;protocol=https;branch=master \
"
RDEPENDS:${PN} = " \
azote-palettes \
python3 \
gtk+3 \
python3-pygobject \
python3-pycairo \
python3-pillow \
python3-pkg-resources \
python3-send2trash \
imagemagick \
grim \
slurp \
swaybg \
wlr-randr \
"
inherit setuptools3 main-user
S = "${WORKDIR}/git"
PV = "1.9.7"
SRCREV = "dcb248c97046764d3d01420dc320f4119e2c2dac"
do_configure:prepend() {
[ -d ${S}/dist ] && mv ${S}/dist ${S}/distrib
}
do_install:append() {
install -d ${D}${bindir} ${D}${datadir}/azote ${D}${datadir}/pixmaps ${D}${datadir}/applications ${D}${MAIN_USER_HOMEDIR}
install -m 755 ${S}/distrib/azote ${D}${bindir}
install -m 644 ${S}/distrib/azote.desktop ${D}${datadir}/applications
install -m 644 ${S}/distrib/azote.svg ${D}${datadir}/pixmaps
install -m 644 ${S}/distrib/indicator_active.png ${D}${datadir}/azote
install -m 644 ${S}/distrib/indicator_attention.png ${D}${datadir}/azote
touch ${D}${MAIN_USER_HOMEDIR}/.azotebg
chown ${MAIN_USER_NAME}:${MAIN_USER_NAME} -R ${D}${MAIN_USER_HOMEDIR}
}
FILES:${PN}:append = " \
${datadir} \
${bindir} \
${MAIN_USER_HOMEDIR} \
"