diff --git a/recipes-devtools/stb/stb_git.bb b/recipes-devtools/stb/stb_git.bb new file mode 100644 index 0000000..e2bba3a --- /dev/null +++ b/recipes-devtools/stb/stb_git.bb @@ -0,0 +1,18 @@ +SUMMARY = "stb is a set of single-file libraries for C/C++" +HOMEPAGE = "https://github.com/nothings/stb" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fb994481c55623ef338885280e676f3b" + +SRC_URI = "git://github.com/nothings/stb.git;protocol=https;branch=master" +SRCREV = "f4a71b13373436a2866c5d68f8f80ac6f0bc1ffe" +S = "${WORKDIR}/git" + +do_install() { + install -d ${D}${includedir}/stb + for file in ${S}/*.h; do + install -m 0644 $file ${D}${includedir}/stb + done + # needed for gamescope + install -m 0644 deprecated/stb_image_resize.h ${D}${includedir}/stb +} +