pkg:setup ENV["PG_CONFIG"] = Formula["postgresql"].opt_bin/"pg_config" pkg:configure make libpq=-L#{Formula[postgresql"].opt_lib} -lpq" mkdir "stage" make DESTDIR=${PKG_DEST} install DESTDIR=#{buildpath}/stage bin.install Dir["stage/**/bin/*"] lib.install Dir["stage/**/lib/*"] include.install Dir["stage/**/include/*"] (share/"postgresql/extension").install Dir["stage/**/share/postgresql/extension/*"]