mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2025-07-12 22:14:30 +02:00
nwg-shell: use go-mod-update-modules class
cleanup
This commit is contained in:
13
recipes-gtk/nwg-shell/nwgocc/nwgocc-go-mods.inc
Normal file
13
recipes-gtk/nwg-shell/nwgocc/nwgocc-go-mods.inc
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
# This file has been generated by go-mod-update-modules.bbclass
|
||||
#
|
||||
# Do not modify it by hand, as the contents will be replaced when
|
||||
# running the update-modules task.
|
||||
|
||||
SRC_URI += "\
|
||||
gomod://github.com/allan-simon/go-singleinstance;version=v0.0.0-20210120080615-d0997106ab37;sha256sum=99115651f7df4f4b9956ca5af927e06d8fe8aac7b13f52f4a130ac4d7e237ad9 \
|
||||
gomod://github.com/go-ole/go-ole;version=v1.2.4;mod=1;sha256sum=9eb34b77c569cc51e435357b1c66b5a3baf1018a85160e702925620d048f2881 \
|
||||
gomod://github.com/gotk3/gotk3;version=v0.6.1;sha256sum=61a2d027cea272dbbcebb5ac6114fd3230cac6e54b16451c3597db3961b64380 \
|
||||
gomod://github.com/itchyny/volume-go;version=v0.2.1;sha256sum=70ac8f76e3bdd31d42fb620b80aebc7bf6f3668f78b601ea0f4ec8505a65f1e3 \
|
||||
gomod://github.com/moutend/go-wca;version=v0.2.0;mod=1;sha256sum=47da7e1776c5216469b752a556825b4403b49ce6ffe25fa3f8df45c252cd218a \
|
||||
"
|
13
recipes-gtk/nwg-shell/nwgocc/nwgocc-licenses.inc
Normal file
13
recipes-gtk/nwg-shell/nwgocc/nwgocc-licenses.inc
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
# This file has been generated by go-mod-update-modules.bbclass
|
||||
#
|
||||
# Do not modify it by hand, as the contents will be replaced when
|
||||
# running the update-modules task.
|
||||
|
||||
LICENSE += "& ISC & MIT"
|
||||
|
||||
LIC_FILES_CHKSUM += "\
|
||||
file://pkg/mod/github.com/allan-simon/go-singleinstance@v0.0.0-20210120080615-d0997106ab37/LICENSE;md5=64080d7ce40e2ef2eee4754706a437c4;spdx=MIT \
|
||||
file://pkg/mod/github.com/gotk3/gotk3@v0.6.1/LICENSE;md5=82d02ae7d63483ef7474e8f4f95d687e;spdx=ISC \
|
||||
file://pkg/mod/github.com/itchyny/volume-go@v0.2.1/LICENSE;md5=111c720f78aae9ca2665c814430c8433;spdx=MIT \
|
||||
"
|
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