
Alternatives are specified in makepkg via (e.g.): alternative=('sh') There should be a file (e.g.) sh.alternative alongside the PKGBUILD containing a list of symlinks to be created with the alternative is active. This file is stored in the root of the package as (e.g.) .ALTERNATIVE.sh. Signed-off-by: Allan McRae <allan@archlinux.org>
41 lines
903 B
Meson
41 lines
903 B
Meson
libmakepkg_module = 'lint_pkgbuild'
|
|
|
|
sources = [
|
|
'alternative.sh.in',
|
|
'arch.sh.in',
|
|
'arch_specific.sh.in',
|
|
'backup.sh.in',
|
|
'changelog.sh.in',
|
|
'checkdepends.sh.in',
|
|
'conflicts.sh.in',
|
|
'depends.sh.in',
|
|
'epoch.sh.in',
|
|
'fullpkgver.sh.in',
|
|
'install.sh.in',
|
|
'makedepends.sh.in',
|
|
'optdepends.sh.in',
|
|
'options.sh.in',
|
|
'package_function.sh.in',
|
|
'package_function_variable.sh.in',
|
|
'pkgbase.sh.in',
|
|
'pkglist.sh.in',
|
|
'pkgname.sh.in',
|
|
'pkgrel.sh.in',
|
|
'pkgver.sh.in',
|
|
'provides.sh.in',
|
|
'source.sh.in',
|
|
'util.sh.in',
|
|
'variable.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
|