From 01f6fe46ce98e4c1d4840ee8ff46e6fff2ed1232 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Fri, 8 Apr 2022 08:02:52 +0200 Subject: [PATCH] nwg-look: initial add recipe --- recipes-extended/xcur2png/xcur2png_git.bb | 15 ++++++++++++ recipes-gtk/nwg-shell/nwg-look_git.bb | 28 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-extended/xcur2png/xcur2png_git.bb create mode 100644 recipes-gtk/nwg-shell/nwg-look_git.bb diff --git a/recipes-extended/xcur2png/xcur2png_git.bb b/recipes-extended/xcur2png/xcur2png_git.bb new file mode 100644 index 0000000..e4f729d --- /dev/null +++ b/recipes-extended/xcur2png/xcur2png_git.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "xcur2png is a program which let you take PNG image from X cursor, and generate config-file which is reusable by xcursorgen." +HOMEPAGE = "https://github.com/eworm-de/xcur2png" +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +DEPENDS = "libxcursor libpng" + +S = "${WORKDIR}/git" +SRCREV = "f582d648f37a9ed2de0c8650947487af8a54d3ad" +PV = "0.7.1" + +SRC_URI = "git://github.com/eworm-de/xcur2png.git;protocol=https;branch=master" + +inherit autotools pkgconfig + diff --git a/recipes-gtk/nwg-shell/nwg-look_git.bb b/recipes-gtk/nwg-shell/nwg-look_git.bb new file mode 100644 index 0000000..d2de028 --- /dev/null +++ b/recipes-gtk/nwg-shell/nwg-look_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "Nwg-look is a GTK3 settings editor, designed to work properly in wlroots-based Wayland environment." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=2e53cad864b84be468b2fc0b511942ce" + +DEPENDS = "xcur2png gtk+3" +RDEPENDS:${PN} = "xcur2png" + +GO_IMPORT = "github.com/nwg-piotr/nwg-look.git" + +SRC_URI = "git://${GO_IMPORT};branch=main;protocol=https" +SRCREV = "5748978865559f481fd1ee18a966ecfb1ff7e9cd" +PV = "0.1.0" + +inherit go go-mod pkgconfig gtk-icon-cache + +GO_INSTALL = "${GO_IMPORT}" + +do_install:append() { + install -d ${D}${datadir}/nwg-look ${D}${datadir}/applications ${D}${datadir}/icons/hicolor/scalable/apps + install -m 0644 ${S}/src/${GO_IMPORT}/stuff/main.glade ${D}${datadir}/nwg-look + install -m 0644 ${S}/src/${GO_IMPORT}/stuff/nwg-look.desktop ${D}${datadir}/applications + install -m 0644 ${S}/src/${GO_IMPORT}/stuff/nwg-look.svg ${D}${datadir}/icons/hicolor/scalable/apps +} + +FILES:${PN} += "${datadir}" + +do_compile[network] = "1" +