diff --git a/srcpkgs/toml11/template b/srcpkgs/toml11/template new file mode 100644 index 00000000000..555e65e9ed2 --- /dev/null +++ b/srcpkgs/toml11/template @@ -0,0 +1,26 @@ +# Template file for 'toml11' +pkgname=toml11 +version=4.4.0 +revision=1 +build_style=cmake +short_desc="TOML for Modern C++" +maintainer="Đoàn Trần Công Danh " +license="GPL-3.0-or-later" +homepage="https://toruniina.github.io/toml11/" +distfiles="https://github.com/ToruNiina/toml11/archive/refs/tags/v${version}.tar.gz" +checksum=815bfe6792aa11a13a133b86e7f0f45edc5d71eb78f5fb6686c49c7f792b9049 + +post_install() { + cat <<-EOF >toml11.pc + prefix=/usr + exec_prefix=\${prefix} + includedir=\${prefix}/include + libdir=\${exec_prefix}/lib + + Name: toml11 + Description: ${short_desc} + Version: ${version} + Cflags: -I\${includedir} + EOF + vinstall toml11.pc 644 usr/lib/pkgconfig +}