meson: Replace configure_file with fs.copyfile

configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6e1434ac7cc3d5abdac38f737b35e0889315fe95
diff --git a/meson.build b/meson.build
index 3652ced..4432dd8 100644
--- a/meson.build
+++ b/meson.build
@@ -109,12 +109,14 @@
         'systemdsystemunitdir',
         pkgconfig_define: ['prefix', get_option('prefix')])
 
-configure_file(input: 'service_files/phosphor-button-handler.service',
-                output: 'phosphor-button-handler.service',
-                copy: true,
-                install_dir: systemd_system_unit_dir)
-
-configure_file(input: 'service_files/xyz.openbmc_project.Chassis.Buttons.service',
-                output: 'xyz.openbmc_project.Chassis.Buttons.service',
-                copy: true,
-                install_dir: systemd_system_unit_dir)
+fs = import('fs')
+fs.copyfile(
+    'service_files/phosphor-button-handler.service',
+    install: true,
+    install_dir: systemd_system_unit_dir
+)
+fs.copyfile(
+    'service_files/xyz.openbmc_project.Chassis.Buttons.service',
+    install: true,
+    install_dir: systemd_system_unit_dir
+)