pkg:setup sdk = MacOS.sdk_path_if_needed ? MacOS.sdk_path : "" (buildpath/"ncurses.pc").write <<~EOS Name: ncurses Description: ncurses Version: 5.4 Libs: -L/usr/lib -lncurses Cflags: -I#{sdk}/usr/include EOS ENV.prepend_path "PKG_CONFIG_PATH", buildpath mkdir "build" && cd build meson --prefix=${PKG_TAPF} .. ninja install