pkg:setup ENV["XML_CATALOG_FILES"] = etc/"xml/catalog" pkg:configure make (buildpath/"shadowsocks-libev.json").write <<~EOS { "server":"localhost", "server_port":8388, "local_port":1080, "password":"barfoo!", "timeout":600, "method":null } EOS etc.install "shadowsocks-libev.json" inreplace Dir["man/*"], "/etc/shadowsocks-libev/config.json", "#{etc}/shadowsocks-libev.json" make DESTDIR=${PKG_DEST} install