feat: basically finish pkgconfig generation

This commit is contained in:
2026-08-03 14:22:56 +08:00
parent 02526784a2
commit 8c0775d784
11 changed files with 246 additions and 36 deletions
@@ -0,0 +1,14 @@
{#
Utilize ${pcfiledir} to fetch the directory where current .pc file is.
And back to parent twice to obtain the installation directory.
-#}
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: {{ name }}
Description: {{ description }}
Version: {{ version }}
Libs: -L${libdir} -l{{ artifact }}
Cflags: -I${includedir}