mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2025-07-13 14:34:34 +02:00
nwg-shell: use go-mod-update-modules class
cleanup
This commit is contained in:
45
recipes-gtk/nwg-shell/nwgocc/nwgocc_0.0.1.bb
Normal file
45
recipes-gtk/nwg-shell/nwgocc/nwgocc_0.0.1.bb
Normal file
@ -0,0 +1,45 @@
|
||||
SUMMARY = "nwg Control Center is a highly customisable, GTK-based GUI, intended for use with window managers."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=fffa55ad1c828db5e334374fb1182530"
|
||||
|
||||
DEPENDS = " \
|
||||
gtk+3 \
|
||||
"
|
||||
|
||||
RRECOMMENDS:${PN} = " \
|
||||
light \
|
||||
playerctl \
|
||||
"
|
||||
|
||||
GO_IMPORT = "github.com/nwg-piotr/nwgocc.git"
|
||||
|
||||
SRC_URI = "git://${GO_IMPORT};destsuffix=${BP}/src/${GO_IMPORT};nobranch=1;protocol=https"
|
||||
|
||||
SRCREV = "782a37014de40f63115825c0b5bd343dee2ba668"
|
||||
|
||||
inherit go go-mod pkgconfig go-mod-update-modules gtk-icon-cache
|
||||
|
||||
require ${PN}-go-mods.inc ${PN}-licenses.inc
|
||||
|
||||
GO_INSTALL = "${GO_IMPORT}"
|
||||
GO_LINKSHARED = ""
|
||||
|
||||
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}"
|
||||
|
Reference in New Issue
Block a user