nwgocc: install missing files

This commit is contained in:
Markus Volk 2022-06-18 22:48:30 +02:00
parent 5589d2e786
commit 97e6a3eade

View File

@ -18,9 +18,28 @@ SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https"
PV = "0.0.1"
SRCREV = "782a37014de40f63115825c0b5bd343dee2ba668"
inherit go go-mod pkgconfig
inherit go go-mod pkgconfig gtk-icon-cache
GO_INSTALL = "${GO_IMPORT}"
do_install:append() {
install -d \
${D}${datadir}/nwgocc/icons_light ${D}${datadir}/nwgocc/icons_dark \
${D}${datadir}/applications ${D}${datadir}/icons/hicolor/scalable/apps
install -m 644 ${S}/src/${GO_IMPORT}/nwgocc.desktop ${D}${datadir}/applications
install -m 644 ${S}/src/${GO_IMPORT}/nwgocc.svg ${D}${datadir}/icons/hicolor/scalable/apps
for file in ${S}/src/${GO_IMPORT}/configs/*; do
install -m 644 $file ${D}${datadir}/nwgocc
done
for file in ${S}/src/${GO_IMPORT}/icons_light/*; do
install -m 644 $file ${D}${datadir}/nwgocc/icons_light
done
for file in ${S}/src/${GO_IMPORT}/icons_dark/*; do
install -m 644 $file ${D}${datadir}/nwgocc/icons_dark
done
}
FILES:${PN} += "${datadir}"
do_compile[network] = "1"