summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/integrity/meson.build
blob: 9aa9061c6e7e18d0e2cad474cbba56ca28a4760a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
libmakepkg_module = 'integrity'

sources = [
  'generate_checksum.sh.in',
  'generate_signature.sh.in',
  'verify_checksum.sh.in',
  'verify_signature.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