summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/executable/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/executable/meson.build')
-rw-r--r--scripts/libmakepkg/executable/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/libmakepkg/executable/meson.build b/scripts/libmakepkg/executable/meson.build
new file mode 100644
index 00000000..8536a540
--- /dev/null
+++ b/scripts/libmakepkg/executable/meson.build
@@ -0,0 +1,26 @@
+libmakepkg_module = 'executable'
+
+sources = [
+ 'ccache.sh.in',
+ 'checksum.sh.in',
+ 'distcc.sh.in',
+ 'fakeroot.sh.in',
+ 'gpg.sh.in',
+ 'gzip.sh.in',
+ 'pacman.sh.in',
+ 'strip.sh.in',
+ 'sudo.sh.in',
+ 'vcs.sh.in',
+]
+
+foreach src : sources
+ output_dir = join_paths(get_option('datadir'), 'makepkg', libmakepkg_module)
+
+ custom_target(
+ libmakepkg_module + '_' + src.underscorify(),
+ command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@' ],
+ input : src,
+ output : '@BASENAME@',
+ install : true,
+ install_dir : output_dir)
+endforeach