diff --git a/recipes-extended/ddcutil/ddcutil_git.bb b/recipes-extended/ddcutil/ddcutil_git.bb new file mode 100644 index 0000000..75fdf02 --- /dev/null +++ b/recipes-extended/ddcutil/ddcutil_git.bb @@ -0,0 +1,30 @@ +SUMMARY = "ddcutil is a Linux program for querying and changing monitor settings, such as brightness and color levels." +HOMEPAGE = "https://github.com/rockowitz/ddcutil" +SECTION = "libs" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/rockowitz/ddcutil.git;protocol=https;branch=master" + +DEPENDS = "i2c-tools glib-2.0 kmod" + +S = "${WORKDIR}/git" +PV = "1.2.2" +SRCREV = "5080161b456cc6a1fd3e6db3dc537e1dcd1c809b" + +inherit autotools pkgconfig gobject-introspection + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'drm x11 systemd', d)}" + +PACKAGECONFIG[drm] = "--enable-drm=yes,--enable-drm=no,libdrm" +PACKAGECONFIG[systemd] = "--enable-udev=yes,--enable-udev=no,udev" +PACKAGECONFIG[usb] = "--enable-usb=yes,--enable-usb=no,libusb1" +PACKAGECONFIG[x11] = "--enable-x11=yes,--enable-x11=no,libx11 xrandr" + +do_install:append () { + install -d ${D}${sysconfdir}/udev/rules.d + cp -rf ${D}${datadir}/ddcutil/data/* ${D}${sysconfdir}/udev/rules.d +} + +FILES:${PN} += "${sysconfdir}" + diff --git a/recipes-gtk/nwg-shell/ddcpopup_git.bb b/recipes-gtk/nwg-shell/ddcpopup_git.bb new file mode 100644 index 0000000..25d04ce --- /dev/null +++ b/recipes-gtk/nwg-shell/ddcpopup_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "ddcpopup allows to control basic settings of external (not laptop built-in) monitors." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/README.md;md5=63b79d68c363846305e6bb4fbf116a35" + +DEPENDS = " \ + ddcutil \ + gtk+3 \ + gtk-layer-shell \ +" + +RDEPENDS:${PN} = "ddcutil" + +GO_IMPORT = "github.com/nwg-piotr/ddcpopup.git" + +SRC_URI = "git://${GO_IMPORT};nobranch=1;protocol=https" + +PV = "0.1" +SRCREV = "8fab5132e49e08a1eeaa7a0dd3350d06f4399200" + +inherit go go-mod pkgconfig + +GO_INSTALL = "${GO_IMPORT}" + +do_compile[network] = "1" + +do_install:append() { + mv ${D}${bindir}/main ${D}${bindir}/ddcpopup +}