def METHOD_NAME(self):
    copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
    if is_msvc(self):
        cmake = CMake(self)
        cmake.install()
    else:
        autotools = Autotools(self)
        autotools.install()
        rm(self, "*.la", os.path.join(self.package_folder, "lib"))
        rmdir(self, os.path.join(self.package_folder, "build-1"))
        rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
        fix_apple_shared_install_name(self)
        apr_rules_mk = os.path.join(self.package_folder, "res", "build-1", "apr_rules.mk")
        apr_rules_cnt = open(apr_rules_mk).read()
        for key in ("apr_builddir", "apr_builders", "top_builddir"):
            apr_rules_cnt, nb = re.subn(f"^{key}=[^\n]*\n", f"{key}=$(_APR_BUILDDIR)\n", apr_rules_cnt, flags=re.MULTILINE)
            if nb == 0:
                raise ConanException(f"Could not find/replace {key} in {apr_rules_mk}")
        open(apr_rules_mk, "w").write(apr_rules_cnt)