diff mbox series

[meta-darwin,3/3] add bomutils recipe

Message ID 20260128063648.1422-3-dev@qinc.tv
State New
Headers show
Series [meta-darwin,1/3] add hfsprogs recipe | expand

Commit Message

Eric L. Hernes Jan. 28, 2026, 6:36 a.m. UTC
bomutils is used to build the bill of materials files for macOS .pkg installers

Signed-off-by: Eric L. Hernes <dev@qinc.tv>
---
 recipes-support/bomutils/bomutils_git.bb | 34 ++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-support/bomutils/bomutils_git.bb
diff mbox series

Patch

diff --git a/recipes-support/bomutils/bomutils_git.bb b/recipes-support/bomutils/bomutils_git.bb
new file mode 100644
index 0000000..04e6dbd
--- /dev/null
+++ b/recipes-support/bomutils/bomutils_git.bb
@@ -0,0 +1,34 @@ 
+SUMMARY = "Bill Of Materials Utils"
+HOMEPAGE = "https://github.com/hogliux/bomutils"
+LICENSE = "GPL-2.0-only"
+
+SRCREV = "f62b59c659b1e57788661dadf87765e226824f67"
+SRC_URI = " \
+    git://github.com/elhernes/bomutils.git;branch=master;protocol=https \
+"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=55d923cdeef7e46b4d6415cb173b345a"
+
+BBCLASSEXTEND = "native"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/git/build"
+
+do_compile() {
+    make -C ${S}
+}
+
+do_install() {
+    install -d ${D}${bindir}
+    install -d ${D}${mandir}/man1
+
+    install -m 0755 ${B}/bin/ls4mkbom ${D}${bindir}
+    install -m 0755 ${B}/bin/dumpbom ${D}${bindir}
+    install -m 0755 ${B}/bin/lsbom ${D}${bindir}
+    install -m 0755 ${B}/bin/mkbom ${D}${bindir}
+
+    install -m 0444 ${B}/man/ls4mkbom.1.gz ${D}${mandir}/man1
+    install -m 0444 ${B}/man/dumpbom.1.gz ${D}${mandir}/man1
+    install -m 0444 ${B}/man/lsbom.1.gz ${D}${mandir}/man1
+    install -m 0444 ${B}/man/mkbom.1.gz ${D}${mandir}/man1
+}