diff --git a/dev-libs/stb/files/stb.pc b/dev-libs/stb/files/stb.pc new file mode 100644 index 00000000000..8dfb2f17a8e --- /dev/null +++ b/dev-libs/stb/files/stb.pc @@ -0,0 +1,7 @@ +prefix=/usr +includedir=${prefix}/include/stb + +Name: stb +Description: stb single-file public domain libraries +Cflags: -I${includedir} +Version: {PV} diff --git a/dev-libs/stb/stb-20200713.ebuild b/dev-libs/stb/stb-20200713.ebuild index 17561e11cde..34e6ad33174 100644 --- a/dev-libs/stb/stb-20200713.ebuild +++ b/dev-libs/stb/stb-20200713.ebuild @@ -31,4 +31,8 @@ src_prepare() { src_install() { doheader -r stb + insinto /usr/share/pkgconfig + cp "${FILESDIR}/stb.pc" "${T}" || die + sed -i "s|{PV}|${PV}|g" "${T}/stb.pc" || die + doins "${T}/stb.pc" }